summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Goodman <wagoodman@users.noreply.github.com>2023-07-06 11:03:30 -0400
committerAlex Goodman <wagoodman@users.noreply.github.com>2023-07-06 11:03:30 -0400
commite9169b9ccdad03b5b9d0617eaa5ac222992afc49 (patch)
treec7e9bc306f73c6a4ffa888d7b3deab6aa786db3d
parent77c11047cfe7ccc6b3dc21ce52eaec835071d8c2 (diff)
check error of kill and return calls
-rw-r--r--runtime/ui/app.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/ui/app.go b/runtime/ui/app.go
index 6d07650..faf908f 100644
--- a/runtime/ui/app.go
+++ b/runtime/ui/app.go
@@ -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.