Explicitly handle SIGINT
This commit is contained in:
parent
e9f7c48262
commit
20fb419126
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ import (
|
|||
// flag, probably as part of: https://github.com/ooni/probe-cli/issues/45
|
||||
func listenForSignals(ctx *ooni.Context) {
|
||||
s := make(chan os.Signal, 1)
|
||||
signal.Notify(s, os.Interrupt, syscall.SIGTERM)
|
||||
signal.Notify(s, os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
|
||||
|
||||
go func() {
|
||||
<-s
|
||||
|
|
|
|||
Loading…
Reference in a new issue