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