summaryrefslogtreecommitdiff
path: root/debian/patches/sshd-ignore-sighup.patch
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-02-27 14:05:10 +0000
committerColin Watson <cjwatson@debian.org>2010-02-27 14:05:10 +0000
commit8dcc7c5ef45cf5032dca7a308ffe17d3935e62d5 (patch)
tree2e0d8058bdfc24a60a20c5bcbfd1075ef1048ff3 /debian/patches/sshd-ignore-sighup.patch
parente44a1fb6e8e59e67e5c8b6e83c0d8566d146aad9 (diff)
Convert to source format 3.0 (quilt).
Diffstat (limited to 'debian/patches/sshd-ignore-sighup.patch')
-rw-r--r--debian/patches/sshd-ignore-sighup.patch12
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 @@
1Index: 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));