From 20fb41912670db46244b87e190190f84016b5a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arturo=20Filast=C3=B2?= Date: Fri, 7 Feb 2020 15:33:37 +0100 Subject: [PATCH] Explicitly handle SIGINT --- internal/cli/run/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cli/run/run.go b/internal/cli/run/run.go index cf6ee80..7af40f4 100644 --- a/internal/cli/run/run.go +++ b/internal/cli/run/run.go @@ -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