ソースを参照

stop on TERM signal as well.

which is the proper signal, I think, and it's the one sublime/python
seems to send to subprocesses.
Lucas Stadler 11 年 前
コミット
b70d532397
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      go/qst.go

+ 1 - 1
go/qst.go

@ -85,7 +85,7 @@ func main() {
85 85
	go runCmd(file, runner)
86 86
87 87
	c := make(chan os.Signal, 1)
88
	signal.Notify(c, os.Interrupt, os.Kill)
88
	signal.Notify(c, os.Interrupt, os.Kill, syscall.SIGTERM)
89 89
	s := <-c
90 90
	log.Printf("got signal: %s, exiting...", s)
91 91
	runner.Stop()