diff options
author | Kevin Steves <stevesk@pobox.com> | 2001-02-04 13:20:36 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2001-02-04 13:20:36 +0000 |
commit | b6e773acc9f27118b215a892ba704123a6df7b72 (patch) | |
tree | 083542bf79b817ac9790232c14d7a508f0d6ecc0 /serverloop.c | |
parent | b797b92237276b87bb758648d61ef71579befc5b (diff) |
- (stevesk) add mysignal() wrapper and use it for the protocol 2
SIGCHLD handler.
Diffstat (limited to 'serverloop.c')
-rw-r--r-- | serverloop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/serverloop.c b/serverloop.c index bdac6a0d..353733d3 100644 --- a/serverloop.c +++ b/serverloop.c @@ -110,7 +110,7 @@ sigchld_handler2(int sig) 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 @@ server_loop2(void) 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(); |