summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sshd.c b/sshd.c
index 837409bf2..868df9e65 100644
--- a/sshd.c
+++ b/sshd.c
@@ -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"
@@ -2117,6 +2121,11 @@ main(int ac, char **av)
2117 unsetenv("SSH_SIGSTOP"); 2121 unsetenv("SSH_SIGSTOP");
2118 } 2122 }
2119 2123
2124#ifdef HAVE_SYSTEMD
2125 /* Signal systemd that we are ready to accept connections */
2126 sd_notify(0, "READY=1");
2127#endif
2128
2120 /* Accept a connection and return in a forked child */ 2129 /* Accept a connection and return in a forked child */
2121 server_accept_loop(&sock_in, &sock_out, 2130 server_accept_loop(&sock_in, &sock_out,
2122 &newsock, config_s); 2131 &newsock, config_s);