summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2014-02-09 16:10:17 +0000
committerColin Watson <cjwatson@debian.org>2014-02-09 16:19:19 +0000
commit6fba9b85d3529fd3e1ca03dff3e457f04b3e39dd (patch)
treebf400a86dc20ffe5320dc61957995f15d09cdc58
parent52e810085e196c457dfda9cad08ce76191d11fe7 (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 6b988fe2e..72e9eaf47 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1914,6 +1914,10 @@ main(int ac, char **av)
1914 } 1914 }
1915 } 1915 }
1916 1916
1917 if (getenv("SSH_SIGSTOP"))
1918 /* Tell service supervisor that we are ready. */
1919 kill(getpid(), SIGSTOP);
1920
1917 /* Accept a connection and return in a forked child */ 1921 /* Accept a connection and return in a forked child */
1918 server_accept_loop(&sock_in, &sock_out, 1922 server_accept_loop(&sock_in, &sock_out,
1919 &newsock, config_s); 1923 &newsock, config_s);