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 4e8ff0662..5e7679a33 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 "ssh2.h" 94#include "ssh2.h"
@@ -1951,6 +1955,11 @@ main(int ac, char **av)
1951 } 1955 }
1952 } 1956 }
1953 1957
1958#ifdef HAVE_SYSTEMD
1959 /* Signal systemd that we are ready to accept connections */
1960 sd_notify(0, "READY=1");
1961#endif
1962
1954 /* Accept a connection and return in a forked child */ 1963 /* Accept a connection and return in a forked child */
1955 server_accept_loop(&sock_in, &sock_out, 1964 server_accept_loop(&sock_in, &sock_out,
1956 &newsock, config_s); 1965 &newsock, config_s);