summaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
authorDavide Cavalca2011-01-25 02:26:03 +0100
committerDenys Vlasenko2011-01-25 02:26:03 +0100
commit9b3b9790b32d440eb89af5edda70a66b1829e861 (patch)
treef0e6d7d088262813025df1f0393cbd2ded8c1c78 /sysklogd
parent444ff284c4097081108e0eded4711247aacda740 (diff)
downloadbusybox-9b3b9790b32d440eb89af5edda70a66b1829e861.zip
busybox-9b3b9790b32d440eb89af5edda70a66b1829e861.tar.gz
add ENABLE_FEATURE_SYSTEMD and use it in syslogd
Signed-off-by: Davide Cavalca <davide@geexbox.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/syslogd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index fb73095..24cab3b 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -512,6 +512,11 @@ static NOINLINE int create_socket(void)
int sock_fd;
char *dev_log_name;
+#if ENABLE_FEATURE_SYSTEMD
+ if (sd_listen_fds() == 1)
+ return SD_LISTEN_FDS_START;
+#endif
+
memset(&sunx, 0, sizeof(sunx));
sunx.sun_family = AF_UNIX;