diff options
author | Colin Watson <cjwatson@debian.org> | 2014-02-09 16:10:17 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2014-03-20 00:32:30 +0000 |
commit | d9ac4d127f53d92cf3426fba28ff351e5e165ae2 (patch) | |
tree | 7cba1c1040a3418568409ce961d05a5fdd855a6c /sshd.c | |
parent | b7df8fdb32f3d33b70ff8733cb0c39417e367534 (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
@@ -1931,6 +1931,10 @@ main(int ac, char **av) | |||
1931 | } | 1931 | } |
1932 | } | 1932 | } |
1933 | 1933 | ||
1934 | if (getenv("SSH_SIGSTOP")) | ||
1935 | /* Tell service supervisor that we are ready. */ | ||
1936 | kill(getpid(), SIGSTOP); | ||
1937 | |||
1934 | /* Accept a connection and return in a forked child */ | 1938 | /* Accept a connection and return in a forked child */ |
1935 | server_accept_loop(&sock_in, &sock_out, | 1939 | server_accept_loop(&sock_in, &sock_out, |
1936 | &newsock, config_s); | 1940 | &newsock, config_s); |