Fix CTRL-Z handling

Fix #3802

This fixes `xterm -e fzf` hangs on CTRL-Z

* Replace SIGSTOP with SIGTSTP
* Do not rely on SIGCONT
This commit is contained in:
Junegunn Choi
2024-08-29 16:41:52 +09:00
parent a09c6e991a
commit 0eee95af57
3 changed files with 3 additions and 25 deletions

View File

@@ -20,9 +20,5 @@ func notifyStop(p *os.Process) {
if err == nil {
pid = pgid * -1
}
unix.Kill(pid, syscall.SIGSTOP)
}
func notifyOnCont(resizeChan chan<- os.Signal) {
signal.Notify(resizeChan, syscall.SIGCONT)
unix.Kill(pid, syscall.SIGTSTP)
}