diff options
author | Colin Watson <cjwatson@debian.org> | 2014-02-09 16:10:17 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2014-02-09 23:43:42 +0000 |
commit | 727d51f30918f6635f06694f71f4318a6038296d (patch) | |
tree | 1670b1119fdf4796c736e8b90a6897d6d8af7389 | |
parent | 797d4dfd543b9d3fe96db6396e902a40b868d5c0 (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
@@ -1909,6 +1909,10 @@ main(int ac, char **av) | |||
1909 | } | 1909 | } |
1910 | } | 1910 | } |
1911 | 1911 | ||
1912 | if (getenv("SSH_SIGSTOP")) | ||
1913 | /* Tell service supervisor that we are ready. */ | ||
1914 | kill(getpid(), SIGSTOP); | ||
1915 | |||
1912 | /* Accept a connection and return in a forked child */ | 1916 | /* Accept a connection and return in a forked child */ |
1913 | server_accept_loop(&sock_in, &sock_out, | 1917 | server_accept_loop(&sock_in, &sock_out, |
1914 | &newsock, config_s); | 1918 | &newsock, config_s); |