diff options
author | Colin Watson <cjwatson@debian.org> | 2014-02-09 16:10:17 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2014-02-10 02:40:18 +0000 |
commit | 6b7aca6f112d216f321466cc7301b5183e772513 (patch) | |
tree | e9f4cd8f16410b8d64fdb93c98c9507f2a4b5629 /sshd.c | |
parent | 1a6c95a5c5c82664f18bab6159e16cd64b07d870 (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
@@ -1924,6 +1924,10 @@ main(int ac, char **av) | |||
1924 | } | 1924 | } |
1925 | } | 1925 | } |
1926 | 1926 | ||
1927 | if (getenv("SSH_SIGSTOP")) | ||
1928 | /* Tell service supervisor that we are ready. */ | ||
1929 | kill(getpid(), SIGSTOP); | ||
1930 | |||
1927 | /* Accept a connection and return in a forked child */ | 1931 | /* Accept a connection and return in a forked child */ |
1928 | server_accept_loop(&sock_in, &sock_out, | 1932 | server_accept_loop(&sock_in, &sock_out, |
1929 | &newsock, config_s); | 1933 | &newsock, config_s); |