From 382b98da589cb581d364d90e4286243c24877aa3 Mon Sep 17 00:00:00 2001 From: sre Date: Mon, 20 Jun 2022 18:12:10 +0800 Subject: [PATCH] ctr c --- pong.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pong.go b/pong.go index 5f0d89b..724a431 100644 --- a/pong.go +++ b/pong.go @@ -24,11 +24,11 @@ pong -a www.baidu.com -p 443 -k tcp -t 3 func main() { c := make(chan os.Signal, 1) + signal.Notify(c, os.Interrupt, os.Kill) for { select { case s := <-c: fmt.Println("ctc") - signal.Notify(c, os.Interrupt, os.Kill) fmt.Println("Got signal:", s) os.Exit(0) default: