summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sshd.c b/sshd.c
index 85b679d5e..b1776ef45 100644
--- a/sshd.c
+++ b/sshd.c
@@ -310,13 +310,11 @@ main_sigchld_handler(int sig)
310static void 310static void
311grace_alarm_handler(int sig) 311grace_alarm_handler(int sig)
312{ 312{
313 /* XXX no idea how fix this signal handler */
314
315 if (use_privsep && pmonitor != NULL && pmonitor->m_pid > 0) 313 if (use_privsep && pmonitor != NULL && pmonitor->m_pid > 0)
316 kill(pmonitor->m_pid, SIGALRM); 314 kill(pmonitor->m_pid, SIGALRM);
317 315
318 /* Log error and exit. */ 316 /* Log error and exit. */
319 fatal("Timeout before authentication for %s", get_remote_ipaddr()); 317 sigdie("Timeout before authentication for %s", get_remote_ipaddr());
320} 318}
321 319
322/* 320/*
@@ -1797,6 +1795,7 @@ main(int ac, char **av)
1797 */ 1795 */
1798 alarm(0); 1796 alarm(0);
1799 signal(SIGALRM, SIG_DFL); 1797 signal(SIGALRM, SIG_DFL);
1798 authctxt->authenticated = 1;
1800 if (startup_pipe != -1) { 1799 if (startup_pipe != -1) {
1801 close(startup_pipe); 1800 close(startup_pipe);
1802 startup_pipe = -1; 1801 startup_pipe = -1;