m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 15:23:48 -05:00

os.Kill signal cannot be trapped (#1641)

This commit is contained in:
Christian Muehlhaeuser
2019-07-19 06:24:46 +02:00
committed by Junegunn Choi
parent 3b9dbd4146
commit 6577388250

View File

@@ -1423,7 +1423,7 @@ func (t *Terminal) Loop() {
<-t.startChan
{ // Late initialization
intChan := make(chan os.Signal, 1)
signal.Notify(intChan, os.Interrupt, os.Kill, syscall.SIGTERM)
signal.Notify(intChan, os.Interrupt, syscall.SIGTERM)
go func() {
<-intChan
t.reqBox.Set(reqQuit, nil)