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-10 02:40:18 +0000
commit6b7aca6f112d216f321466cc7301b5183e772513 (patch)
treee9f4cd8f16410b8d64fdb93c98c9507f2a4b5629
parent1a6c95a5c5c82664f18bab6159e16cd64b07d870 (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);