summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sshd.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sshd.c b/sshd.c
index 543596818..f8db3ae60 100644
--- a/sshd.c
+++ b/sshd.c
@@ -2030,6 +2030,16 @@ main(int ac, char **av)
2030 } 2030 }
2031 } 2031 }
2032 2032
2033 if (getenv("SSH_SIGSTOP")) {
2034 /* Tell service supervisor that we are ready. */
2035 kill(getpid(), SIGSTOP);
2036 /* The service supervisor only ever expects a single
2037 * STOP signal, so do not ever signal it again, even
2038 * in the case of a re-exec or future children.
2039 */
2040 unsetenv("SSH_SIGSTOP");
2041 }
2042
2033 /* Accept a connection and return in a forked child */ 2043 /* Accept a connection and return in a forked child */
2034 server_accept_loop(&sock_in, &sock_out, 2044 server_accept_loop(&sock_in, &sock_out,
2035 &newsock, config_s); 2045 &newsock, config_s);