summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sshd.c b/sshd.c
index 77231c33b..17931068d 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshd.c,v 1.503 2018/01/23 20:00:58 stsp Exp $ */ 1/* $OpenBSD: sshd.c,v 1.504 2018/02/11 21:16:56 dtucker Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -283,7 +283,6 @@ sighup_handler(int sig)
283 int save_errno = errno; 283 int save_errno = errno;
284 284
285 received_sighup = 1; 285 received_sighup = 1;
286 signal(SIGHUP, sighup_handler);
287 errno = save_errno; 286 errno = save_errno;
288} 287}
289 288
@@ -333,8 +332,6 @@ main_sigchld_handler(int sig)
333 while ((pid = waitpid(-1, &status, WNOHANG)) > 0 || 332 while ((pid = waitpid(-1, &status, WNOHANG)) > 0 ||
334 (pid < 0 && errno == EINTR)) 333 (pid < 0 && errno == EINTR))
335 ; 334 ;
336
337 signal(SIGCHLD, main_sigchld_handler);
338 errno = save_errno; 335 errno = save_errno;
339} 336}
340 337