check error of kill and return calls
This commit is contained in:
parent
77c11047cf
commit
e9169b9ccd
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user