Merge pull request #106 from ooni/signal-windows
Explicitly handle SIGINT
This commit is contained in:
commit
f8a49c972d
|
@ -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 New Issue
Block a user