Parcourir la Source

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 ans auparavant
Parent
commit
b70d532397
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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()