Skip to content

Commit 1c88f24

Browse files
authored
Suspend the whole process group along with micro. (#4060)
Fixes #4059
1 parent 25faa84 commit 1c88f24

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

internal/action/actions_posix.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ import (
1414
func (*BufPane) Suspend() bool {
1515
screenb := screen.TempFini()
1616

17-
// suspend the process
18-
pid := syscall.Getpid()
19-
err := syscall.Kill(pid, syscall.SIGSTOP)
17+
// suspend the process group
18+
err := syscall.Kill(0, syscall.SIGSTOP)
2019
if err != nil {
2120
screen.TermMessage(err)
2221
}

0 commit comments

Comments
 (0)