From 0eee95af574880fbd2c6c599988b86a427520677 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 29 Aug 2024 16:41:52 +0900 Subject: Fix CTRL-Z handling Fix #3802 This fixes `xterm -e fzf` hangs on CTRL-Z * Replace SIGSTOP with SIGTSTP * Do not rely on SIGCONT --- src/terminal_unix.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/terminal_unix.go') diff --git a/src/terminal_unix.go b/src/terminal_unix.go index d0b00f2f..7afa2220 100644 --- a/src/terminal_unix.go +++ b/src/terminal_unix.go @@ -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) } -- cgit v1.2.3