summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sshd.c b/sshd.c
index 4d28dc0aa..19ee92b27 100644
--- a/sshd.c
+++ b/sshd.c
@@ -2015,11 +2015,6 @@ main(int ac, char **av)
2015 /* ignore SIGPIPE */ 2015 /* ignore SIGPIPE */
2016 signal(SIGPIPE, SIG_IGN); 2016 signal(SIGPIPE, SIG_IGN);
2017 2017
2018#ifdef HAVE_SYSTEMD
2019 /* Signal systemd that we are ready to accept connections */
2020 sd_notify(0, "READY=1");
2021#endif
2022
2023 /* Get a connection, either from inetd or a listening TCP socket */ 2018 /* Get a connection, either from inetd or a listening TCP socket */
2024 if (inetd_flag) { 2019 if (inetd_flag) {
2025 server_accept_inetd(&sock_in, &sock_out); 2020 server_accept_inetd(&sock_in, &sock_out);
@@ -2061,6 +2056,11 @@ main(int ac, char **av)
2061 unsetenv("SSH_SIGSTOP"); 2056 unsetenv("SSH_SIGSTOP");
2062 } 2057 }
2063 2058
2059#ifdef HAVE_SYSTEMD
2060 /* Signal systemd that we are ready to accept connections */
2061 sd_notify(0, "READY=1");
2062#endif
2063
2064 /* Accept a connection and return in a forked child */ 2064 /* Accept a connection and return in a forked child */
2065 server_accept_loop(&sock_in, &sock_out, 2065 server_accept_loop(&sock_in, &sock_out,
2066 &newsock, config_s); 2066 &newsock, config_s);