Skip to content

Commit

Permalink
check error of kill and return calls
Browse files Browse the repository at this point in the history
  • Loading branch information
wagoodman committed Jul 6, 2023
1 parent 77c1104 commit e9169b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions runtime/ui/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@ func (a *app) quit() error {
// handle ctrl+z
func handle_ctrl_z(g *gocui.Gui, v *gocui.View) error {
gocui.Suspend()
syscall.Kill(syscall.Getpid(), syscall.SIGSTOP)
gocui.Resume()
return nil
if err := syscall.Kill(syscall.Getpid(), syscall.SIGSTOP); err != nil {
return err
}
return gocui.Resume()
}

// Run is the UI entrypoint.
Expand Down

0 comments on commit e9169b9

Please sign in to comment.