- (stevesk) add mysignal() wrapper and use it for the protocol 2
SIGCHLD handler.
diff --git a/serverloop.c b/serverloop.c
index bdac6a0..353733d 100644
--- a/serverloop.c
+++ b/serverloop.c
@@ -110,7 +110,7 @@
int save_errno = errno;
debug("Received SIGCHLD.");
child_terminated = 1;
- signal(SIGCHLD, sigchld_handler2);
+ mysignal(SIGCHLD, sigchld_handler2);
errno = save_errno;
}
@@ -639,7 +639,7 @@
debug("Entering interactive session for SSH2.");
- signal(SIGCHLD, sigchld_handler2);
+ mysignal(SIGCHLD, sigchld_handler2);
signal(SIGPIPE, SIG_IGN);
child_terminated = 0;
connection_in = packet_get_connection_in();