diff --git a/main.go b/main.go index 270d47e..29584b4 100644 --- a/main.go +++ b/main.go @@ -34,7 +34,8 @@ func eventLoop(pinger *probing.Pinger) { for { select { // Got signal. stop pinger and exit goroutine - case <-sig: + case s := <-sig: + fmt.Printf("Recived signal: %s, exiting.", s) return // Ticker ticks. print stats. case <-ticker.C: