diff options
author | Colin Watson <cjwatson@debian.org> | 2017-08-22 16:19:50 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2017-08-22 16:19:50 +0100 |
commit | 945ac1262b4d0745d4f2fd4093b85fc66cf777b8 (patch) | |
tree | 7d26ad576d472130ccdc791d5af72c7172a3fd36 /debian/patches/sigstop.patch | |
parent | b4fc0d329c03de1c38dc3f908a10f7239c32a05c (diff) | |
parent | f62d1568c95ad1ad193b95d61e6e93baf8b935a0 (diff) |
Drop Upstart-specific patches
Diffstat (limited to 'debian/patches/sigstop.patch')
-rw-r--r-- | debian/patches/sigstop.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/debian/patches/sigstop.patch b/debian/patches/sigstop.patch deleted file mode 100644 index 43d3937e5..000000000 --- a/debian/patches/sigstop.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From a91715df66fc2a0b7792e87a864c334f4cb15043 Mon Sep 17 00:00:00 2001 | ||
2 | From: Colin Watson <cjwatson@debian.org> | ||
3 | Date: Sun, 9 Feb 2014 16:10:17 +0000 | ||
4 | Subject: Support synchronisation with service supervisor using SIGSTOP | ||
5 | |||
6 | Author: Robie Basak <robie.basak@ubuntu.com> | ||
7 | Forwarded: no | ||
8 | Last-Update: 2014-04-14 | ||
9 | |||
10 | Patch-Name: sigstop.patch | ||
11 | --- | ||
12 | sshd.c | 10 ++++++++++ | ||
13 | 1 file changed, 10 insertions(+) | ||
14 | |||
15 | diff --git a/sshd.c b/sshd.c | ||
16 | index f2f54b51..a2ca2d3e 100644 | ||
17 | --- a/sshd.c | ||
18 | +++ b/sshd.c | ||
19 | @@ -1892,6 +1892,16 @@ main(int ac, char **av) | ||
20 | } | ||
21 | } | ||
22 | |||
23 | + if (getenv("SSH_SIGSTOP")) { | ||
24 | + /* Tell service supervisor that we are ready. */ | ||
25 | + kill(getpid(), SIGSTOP); | ||
26 | + /* The service supervisor only ever expects a single | ||
27 | + * STOP signal, so do not ever signal it again, even | ||
28 | + * in the case of a re-exec or future children. | ||
29 | + */ | ||
30 | + unsetenv("SSH_SIGSTOP"); | ||
31 | + } | ||
32 | + | ||
33 | /* Accept a connection and return in a forked child */ | ||
34 | server_accept_loop(&sock_in, &sock_out, | ||
35 | &newsock, config_s); | ||