blob: 652b3fa66cc462893cdd646d2e7c69b3c0274706 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
Index: b/sshd.c
===================================================================
--- a/sshd.c
+++ b/sshd.c
@@ -318,6 +318,7 @@
close_listen_socks();
close_startup_pipes();
alarm(0); /* alarm timer persists across exec */
+ signal(SIGHUP, SIG_IGN); /* will be restored after exec */
execv(saved_argv[0], saved_argv);
logit("RESTART FAILED: av[0]='%.100s', error: %.100s.", saved_argv[0],
strerror(errno));
|