summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sshd.c b/sshd.c
index 87331c198..23d5a64f0 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1958,6 +1958,16 @@ main(int ac, char **av)
1958 } 1958 }
1959 } 1959 }
1960 1960
1961 if (getenv("SSH_SIGSTOP")) {
1962 /* Tell service supervisor that we are ready. */
1963 kill(getpid(), SIGSTOP);
1964 /* The service supervisor only ever expects a single
1965 * STOP signal, so do not ever signal it again, even
1966 * in the case of a re-exec or future children.
1967 */
1968 unsetenv("SSH_SIGSTOP");
1969 }
1970
1961 /* Accept a connection and return in a forked child */ 1971 /* Accept a connection and return in a forked child */
1962 server_accept_loop(&sock_in, &sock_out, 1972 server_accept_loop(&sock_in, &sock_out,
1963 &newsock, config_s); 1973 &newsock, config_s);