diff options
Diffstat (limited to 'sbin/ping6')
-rw-r--r-- | sbin/ping6/ping6.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c index 5ffc91a..d9f49b9 100644 --- a/sbin/ping6/ping6.c +++ b/sbin/ping6/ping6.c @@ -2144,13 +2144,12 @@ void onint(notused) int notused; { - summary(); + (void)signal(SIGINT, SIG_IGN); + (void)signal(SIGALRM, SIG_IGN); - (void)signal(SIGINT, SIG_DFL); - (void)kill(getpid(), SIGINT); + summary(); - /* NOTREACHED */ - exit(1); + exit(nreceived == 0); } /* |