summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-07-19 06:24:46 +0200
committerJunegunn Choi <junegunn.c@gmail.com>2019-07-19 13:24:46 +0900
commit65773882505b06970c47285b4ace6208ac5e6145 (patch)
treeb29223180134202d3775b9b356ac674ff3368550
parent3b9dbd4146fce2d5b7551ac65676da344ea6a18d (diff)
os.Kill signal cannot be trapped (#1641)
-rw-r--r--src/terminal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 4ea466ae..1b44e141 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -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)