diff --git a/internal/action/actions_posix.go b/internal/action/actions_posix.go index 7831f4329a..6844cf4a58 100644 --- a/internal/action/actions_posix.go +++ b/internal/action/actions_posix.go @@ -14,9 +14,8 @@ import ( func (*BufPane) Suspend() bool { screenb := screen.TempFini() - // suspend the process - pid := syscall.Getpid() - err := syscall.Kill(pid, syscall.SIGSTOP) + // suspend the process group + err := syscall.Kill(0, syscall.SIGSTOP) if err != nil { screen.TermMessage(err) }