summaryrefslogtreecommitdiff
path: root/src/terminal_unix.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-08-29 16:41:52 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-08-29 16:41:52 +0900
commit0eee95af574880fbd2c6c599988b86a427520677 (patch)
tree0703d997945947d6da3a3ebadf401a38f8c03c11 /src/terminal_unix.go
parenta09c6e991aa494bed852f8a8c40bfd94ce43aac2 (diff)
downloadfzf-0eee95af574880fbd2c6c599988b86a427520677.tar.gz
Fix CTRL-Z handling
Fix #3802 This fixes `xterm -e fzf` hangs on CTRL-Z * Replace SIGSTOP with SIGTSTP * Do not rely on SIGCONT
Diffstat (limited to 'src/terminal_unix.go')
-rw-r--r--src/terminal_unix.go6
1 files changed, 1 insertions, 5 deletions
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)
}