summaryrefslogtreecommitdiff
path: root/serverloop.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2001-07-26 17:51:49 +0000
committerKevin Steves <stevesk@pobox.com>2001-07-26 17:51:49 +0000
commite26a155415ffb384fd95296b2ed9e129169abd10 (patch)
treeedf95896f663364b5aa27f4bcf6a1ed268b94729 /serverloop.c
parent8103de7d06ca2ed9157f73a6c2eb6ee1567aebab (diff)
- (stevesk) use mysignal() in protocol 1 loop now that the SIGCHLD
handler has converged.
Diffstat (limited to 'serverloop.c')
-rw-r--r--serverloop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/serverloop.c b/serverloop.c
index d9791274..0b44182c 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)
/* Initialize the SIGCHLD kludge. */
child_terminated = 0;
- signal(SIGCHLD, sigchld_handler);
+ mysignal(SIGCHLD, sigchld_handler);
/* Initialize our global variables. */
fdin = fdin_arg;
@@ -621,7 +621,7 @@ server_loop(pid_t pid, int fdin_arg, int fdout_arg, int fderr_arg)
channel_free_all();
/* We no longer want our SIGCHLD handler to be called. */
- signal(SIGCHLD, SIG_DFL);
+ mysignal(SIGCHLD, SIG_DFL);
wait_pid = waitpid(-1, &wait_status, child_terminated ? WNOHANG : 0);
if (wait_pid == -1)
@@ -710,7 +710,7 @@ server_loop2(Authctxt *authctxt)
if (writeset)
xfree(writeset);
- signal(SIGCHLD, SIG_DFL);
+ mysignal(SIGCHLD, SIG_DFL);
while ((pid = waitpid(-1, &status, WNOHANG)) > 0)
session_close_by_pid(pid, status);