From e9169b9ccdad03b5b9d0617eaa5ac222992afc49 Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Thu, 6 Jul 2023 11:03:30 -0400 Subject: [PATCH] check error of kill and return calls --- runtime/ui/app.go | 7 ++++--- 1 file 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.