mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-28 09:38:39 +00:00
os.Kill signal cannot be trapped (#1641)
This commit is contained in:
parent
3b9dbd4146
commit
6577388250
@ -1423,7 +1423,7 @@ func (t *Terminal) Loop() {
|
|||||||
<-t.startChan
|
<-t.startChan
|
||||||
{ // Late initialization
|
{ // Late initialization
|
||||||
intChan := make(chan os.Signal, 1)
|
intChan := make(chan os.Signal, 1)
|
||||||
signal.Notify(intChan, os.Interrupt, os.Kill, syscall.SIGTERM)
|
signal.Notify(intChan, os.Interrupt, syscall.SIGTERM)
|
||||||
go func() {
|
go func() {
|
||||||
<-intChan
|
<-intChan
|
||||||
t.reqBox.Set(reqQuit, nil)
|
t.reqBox.Set(reqQuit, nil)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user