summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2014-02-09 16:10:17 +0000
committerColin Watson <cjwatson@debian.org>2014-03-20 00:32:30 +0000
commitd9ac4d127f53d92cf3426fba28ff351e5e165ae2 (patch)
tree7cba1c1040a3418568409ce961d05a5fdd855a6c
parentb7df8fdb32f3d33b70ff8733cb0c39417e367534 (diff)
Support synchronisation with service supervisor using SIGSTOP
Forwarded: no Last-Update: 2013-09-14 Patch-Name: sigstop.patch
-rw-r--r--sshd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sshd.c b/sshd.c
index 665c0b91d..ffe360c62 100644
--- a/sshd.c
+++ b/sshd.c
@@ -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);