diff options
-rw-r--r-- | sshd.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); |