diff options
author | Colin Watson <cjwatson@debian.org> | 2014-02-09 16:10:17 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2014-03-19 16:40:07 +0000 |
commit | b0d3fe663d6a54b1348934946bbf8678b7470d14 (patch) | |
tree | 198f3e65f2455fdd179d4216296037a07dc16cbe | |
parent | fd8d46990dfe572955a6eda524fcbf9e9efefa75 (diff) |
Support synchronisation with service supervisor using SIGSTOP
Forwarded: no
Last-Update: 2013-09-14
Patch-Name: sigstop.patch
-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); |