- (stevesk) use mysignal() in protocol 1 loop now that the SIGCHLD
handler has converged.
diff --git a/serverloop.c b/serverloop.c
index d979127..0b44182 100644
--- a/serverloop.c
+++ b/serverloop.c
@@ -448,7 +448,7 @@
/* 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 @@
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 @@
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);