diff options
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/series | 1 | ||||
-rw-r--r-- | debian/patches/sigstop.patch | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches/series b/debian/patches/series index c99a496b5..0e43d9fe9 100644 --- a/debian/patches/series +++ b/debian/patches/series | |||
@@ -45,4 +45,5 @@ ssh-agent-setgid.patch | |||
45 | 45 | ||
46 | # Debian-specific configuration | 46 | # Debian-specific configuration |
47 | gnome-ssh-askpass2-icon.patch | 47 | gnome-ssh-askpass2-icon.patch |
48 | sigstop.patch | ||
48 | debian-config.patch | 49 | debian-config.patch |
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 @@ | |||
1 | Description: Support synchronisation with service supervisor using SIGSTOP | ||
2 | Author: Colin Watson <cjwatson@debian.org> | ||
3 | Forwarded: no | ||
4 | Last-Update: 2013-08-12 | ||
5 | |||
6 | Index: 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); | ||