Skip to content

Commit

Permalink
os.Kill signal cannot be trapped (#1641)
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli authored and junegunn committed Jul 19, 2019
1 parent 3b9dbd4 commit 6577388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6577388

Please sign in to comment.