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-19 16:40:07 +0000
commitb0d3fe663d6a54b1348934946bbf8678b7470d14 (patch)
tree198f3e65f2455fdd179d4216296037a07dc16cbe
parentfd8d46990dfe572955a6eda524fcbf9e9efefa75 (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 c49a87773..23e8c2de0 100644
--- a/sshd.c
+++ b/sshd.c
@@ -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);