diff options
Diffstat (limited to 'debian/patches/sshd-ignore-sighup.patch')
-rw-r--r-- | debian/patches/sshd-ignore-sighup.patch | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/debian/patches/sshd-ignore-sighup.patch b/debian/patches/sshd-ignore-sighup.patch deleted file mode 100644 index ded8bc247..000000000 --- a/debian/patches/sshd-ignore-sighup.patch +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | Description: sshd: Ignore subsequent SIGHUPs during re-exec | ||
2 | Prevents two HUPs in quick succession from resulting in sshd dying. | ||
3 | Author: Colin Watson <cjwatson@debian.org> | ||
4 | Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1692 | ||
5 | Bug-Ubuntu: https://bugs.launchpad.net/bugs/497781 | ||
6 | Last-Update: 2010-02-28 | ||
7 | |||
8 | Index: b/sshd.c | ||
9 | =================================================================== | ||
10 | --- a/sshd.c | ||
11 | +++ b/sshd.c | ||
12 | @@ -318,6 +318,7 @@ | ||
13 | close_listen_socks(); | ||
14 | close_startup_pipes(); | ||
15 | alarm(0); /* alarm timer persists across exec */ | ||
16 | + signal(SIGHUP, SIG_IGN); /* will be restored after exec */ | ||
17 | execv(saved_argv[0], saved_argv); | ||
18 | logit("RESTART FAILED: av[0]='%.100s', error: %.100s.", saved_argv[0], | ||
19 | strerror(errno)); | ||