diff options
Diffstat (limited to 'serverloop.c')
-rw-r--r-- | serverloop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/serverloop.c b/serverloop.c index d9791274c..0b44182ce 100644 --- a/serverloop.c +++ b/serverloop.c | |||
@@ -448,7 +448,7 @@ server_loop(pid_t pid, int fdin_arg, int fdout_arg, int fderr_arg) | |||
448 | 448 | ||
449 | /* Initialize the SIGCHLD kludge. */ | 449 | /* Initialize the SIGCHLD kludge. */ |
450 | child_terminated = 0; | 450 | child_terminated = 0; |
451 | signal(SIGCHLD, sigchld_handler); | 451 | mysignal(SIGCHLD, sigchld_handler); |
452 | 452 | ||
453 | /* Initialize our global variables. */ | 453 | /* Initialize our global variables. */ |
454 | fdin = fdin_arg; | 454 | fdin = fdin_arg; |
@@ -621,7 +621,7 @@ server_loop(pid_t pid, int fdin_arg, int fdout_arg, int fderr_arg) | |||
621 | channel_free_all(); | 621 | channel_free_all(); |
622 | 622 | ||
623 | /* We no longer want our SIGCHLD handler to be called. */ | 623 | /* We no longer want our SIGCHLD handler to be called. */ |
624 | signal(SIGCHLD, SIG_DFL); | 624 | mysignal(SIGCHLD, SIG_DFL); |
625 | 625 | ||
626 | wait_pid = waitpid(-1, &wait_status, child_terminated ? WNOHANG : 0); | 626 | wait_pid = waitpid(-1, &wait_status, child_terminated ? WNOHANG : 0); |
627 | if (wait_pid == -1) | 627 | if (wait_pid == -1) |
@@ -710,7 +710,7 @@ server_loop2(Authctxt *authctxt) | |||
710 | if (writeset) | 710 | if (writeset) |
711 | xfree(writeset); | 711 | xfree(writeset); |
712 | 712 | ||
713 | signal(SIGCHLD, SIG_DFL); | 713 | mysignal(SIGCHLD, SIG_DFL); |
714 | 714 | ||
715 | while ((pid = waitpid(-1, &status, WNOHANG)) > 0) | 715 | while ((pid = waitpid(-1, &status, WNOHANG)) > 0) |
716 | session_close_by_pid(pid, status); | 716 | session_close_by_pid(pid, status); |