summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sshd.c b/sshd.c
index f61d79ec7..b83ecd9e5 100644
--- a/sshd.c
+++ b/sshd.c
@@ -317,6 +317,7 @@ sighup_restart(void)
317 close_listen_socks(); 317 close_listen_socks();
318 close_startup_pipes(); 318 close_startup_pipes();
319 alarm(0); /* alarm timer persists across exec */ 319 alarm(0); /* alarm timer persists across exec */
320 signal(SIGHUP, SIG_IGN); /* will be restored after exec */
320 execv(saved_argv[0], saved_argv); 321 execv(saved_argv[0], saved_argv);
321 logit("RESTART FAILED: av[0]='%.100s', error: %.100s.", saved_argv[0], 322 logit("RESTART FAILED: av[0]='%.100s', error: %.100s.", saved_argv[0],
322 strerror(errno)); 323 strerror(errno));