summaryrefslogtreecommitdiff
path: root/debian/patches/sigstop.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/sigstop.patch')
-rw-r--r--debian/patches/sigstop.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/sigstop.patch b/debian/patches/sigstop.patch
new file mode 100644
index 000000000..42bee0739
--- /dev/null
+++ b/debian/patches/sigstop.patch
@@ -0,0 +1,20 @@
1Description: Support synchronisation with service supervisor using SIGSTOP
2Author: Colin Watson <cjwatson@debian.org>
3Forwarded: no
4Last-Update: 2013-08-12
5
6Index: b/sshd.c
7===================================================================
8--- a/sshd.c
9+++ b/sshd.c
10@@ -1855,6 +1855,10 @@
11 }
12 }
13
14+ if (getenv("SSH_SIGSTOP"))
15+ /* Tell service supervisor that we are ready. */
16+ kill(getpid(), SIGSTOP);
17+
18 /* Accept a connection and return in a forked child */
19 server_accept_loop(&sock_in, &sock_out,
20 &newsock, config_s);