diff options
author | Damien Miller <djm@mindrot.org> | 2000-05-20 15:33:44 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-05-20 15:33:44 +1000 |
commit | fda78d9bd07673e14e8646798a7453e3d9302de5 (patch) | |
tree | 944046756e29f962e954945e02062321390922e2 /serverloop.c | |
parent | 7d6656c1283f46d9cdbba707ea2373af3d994585 (diff) |
- HPUX and Configure fixes from Lutz Jaenicke
<Lutz.Jaenicke@aet.TU-Cottbus.DE>
- Use mkinstalldirs script to make directories instead of non-portable
"install -d". Suggested by Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>
Diffstat (limited to 'serverloop.c')
-rw-r--r-- | serverloop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serverloop.c b/serverloop.c index 58e901de..977ed41f 100644 --- a/serverloop.c +++ b/serverloop.c @@ -85,7 +85,6 @@ sigchld_handler2(int sig) int save_errno = errno; debug("Received SIGCHLD."); child_terminated = 1; - signal(SIGCHLD, sigchld_handler2); errno = save_errno; } @@ -650,6 +649,7 @@ server_loop2(void) while ((pid = waitpid(-1, &status, WNOHANG)) > 0) session_close_by_pid(pid, status); child_terminated = 0; + signal(SIGCHLD, sigchld_handler2); } channel_after_select(&readset, &writeset); process_input(&readset); |