From 6fba9b85d3529fd3e1ca03dff3e457f04b3e39dd Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sun, 9 Feb 2014 16:10:17 +0000 Subject: Support synchronisation with service supervisor using SIGSTOP Forwarded: no Last-Update: 2013-09-14 Patch-Name: sigstop.patch --- sshd.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sshd.c') 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) } } + if (getenv("SSH_SIGSTOP")) + /* Tell service supervisor that we are ready. */ + kill(getpid(), SIGSTOP); + /* Accept a connection and return in a forked child */ server_accept_loop(&sock_in, &sock_out, &newsock, config_s); -- cgit v1.2.3