diff options
Diffstat (limited to 'debian/patches/sshd-ignore-sighup.patch')
-rw-r--r-- | debian/patches/sshd-ignore-sighup.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/patches/sshd-ignore-sighup.patch b/debian/patches/sshd-ignore-sighup.patch new file mode 100644 index 000000000..652b3fa66 --- /dev/null +++ b/debian/patches/sshd-ignore-sighup.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | Index: b/sshd.c | ||
2 | =================================================================== | ||
3 | --- a/sshd.c | ||
4 | +++ b/sshd.c | ||
5 | @@ -318,6 +318,7 @@ | ||
6 | close_listen_socks(); | ||
7 | close_startup_pipes(); | ||
8 | alarm(0); /* alarm timer persists across exec */ | ||
9 | + signal(SIGHUP, SIG_IGN); /* will be restored after exec */ | ||
10 | execv(saved_argv[0], saved_argv); | ||
11 | logit("RESTART FAILED: av[0]='%.100s', error: %.100s.", saved_argv[0], | ||
12 | strerror(errno)); | ||