diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -85,6 +85,10 @@ | |||
85 | #include <prot.h> | 85 | #include <prot.h> |
86 | #endif | 86 | #endif |
87 | 87 | ||
88 | #ifdef HAVE_SYSTEMD | ||
89 | #include <systemd/sd-daemon.h> | ||
90 | #endif | ||
91 | |||
88 | #include "xmalloc.h" | 92 | #include "xmalloc.h" |
89 | #include "ssh.h" | 93 | #include "ssh.h" |
90 | #include "ssh1.h" | 94 | #include "ssh1.h" |
@@ -2052,6 +2056,11 @@ main(int ac, char **av) | |||
2052 | unsetenv("SSH_SIGSTOP"); | 2056 | unsetenv("SSH_SIGSTOP"); |
2053 | } | 2057 | } |
2054 | 2058 | ||
2059 | #ifdef HAVE_SYSTEMD | ||
2060 | /* Signal systemd that we are ready to accept connections */ | ||
2061 | sd_notify(0, "READY=1"); | ||
2062 | #endif | ||
2063 | |||
2055 | /* Accept a connection and return in a forked child */ | 2064 | /* Accept a connection and return in a forked child */ |
2056 | server_accept_loop(&sock_in, &sock_out, | 2065 | server_accept_loop(&sock_in, &sock_out, |
2057 | &newsock, config_s); | 2066 | &newsock, config_s); |