diff options
-rw-r--r-- | pwait.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pwait.c b/pwait.c index 842fe9a..bda13f8 100644 --- a/pwait.c +++ b/pwait.c @@ -237,8 +237,6 @@ usage: if (*mcop_msg == PROC_CN_MCAST_IGNORE) goto close_and_exit; - signal(SIGINT, sigint); - quit = 1; for (n = 0; n < m; n++) { errno = 0; @@ -254,6 +252,8 @@ usage: if (quit) exit(1); + signal(SIGINT, sigint); + rc = 0; while (!quit) { memset(buff, 0, sizeof buff); |