From 65773882505b06970c47285b4ace6208ac5e6145 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 19 Jul 2019 06:24:46 +0200 Subject: [PATCH] os.Kill signal cannot be trapped (#1641) --- src/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal.go b/src/terminal.go index 4ea466a..1b44e14 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)