diff options
-rw-r--r-- | sshd.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1892,6 +1892,16 @@ main(int ac, char **av) | |||
1892 | } | 1892 | } |
1893 | } | 1893 | } |
1894 | 1894 | ||
1895 | if (getenv("SSH_SIGSTOP")) { | ||
1896 | /* Tell service supervisor that we are ready. */ | ||
1897 | kill(getpid(), SIGSTOP); | ||
1898 | /* The service supervisor only ever expects a single | ||
1899 | * STOP signal, so do not ever signal it again, even | ||
1900 | * in the case of a re-exec or future children. | ||
1901 | */ | ||
1902 | unsetenv("SSH_SIGSTOP"); | ||
1903 | } | ||
1904 | |||
1895 | /* Accept a connection and return in a forked child */ | 1905 | /* Accept a connection and return in a forked child */ |
1896 | server_accept_loop(&sock_in, &sock_out, | 1906 | server_accept_loop(&sock_in, &sock_out, |
1897 | &newsock, config_s); | 1907 | &newsock, config_s); |