diff options
author | Colin Watson <cjwatson@debian.org> | 2014-02-09 16:10:17 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2014-02-09 16:19:19 +0000 |
commit | 6fba9b85d3529fd3e1ca03dff3e457f04b3e39dd (patch) | |
tree | bf400a86dc20ffe5320dc61957995f15d09cdc58 /sshd.c | |
parent | 52e810085e196c457dfda9cad08ce76191d11fe7 (diff) |
Support synchronisation with service supervisor using SIGSTOP
Forwarded: no
Last-Update: 2013-09-14
Patch-Name: sigstop.patch
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1914,6 +1914,10 @@ main(int ac, char **av) | |||
1914 | } | 1914 | } |
1915 | } | 1915 | } |
1916 | 1916 | ||
1917 | if (getenv("SSH_SIGSTOP")) | ||
1918 | /* Tell service supervisor that we are ready. */ | ||
1919 | kill(getpid(), SIGSTOP); | ||
1920 | |||
1917 | /* Accept a connection and return in a forked child */ | 1921 | /* Accept a connection and return in a forked child */ |
1918 | server_accept_loop(&sock_in, &sock_out, | 1922 | server_accept_loop(&sock_in, &sock_out, |
1919 | &newsock, config_s); | 1923 | &newsock, config_s); |