diff options
author | Davide Cavalca | 2011-01-25 02:26:03 +0100 |
---|---|---|
committer | Denys Vlasenko | 2011-01-25 02:26:03 +0100 |
commit | 9b3b9790b32d440eb89af5edda70a66b1829e861 (patch) | |
tree | f0e6d7d088262813025df1f0393cbd2ded8c1c78 /sysklogd | |
parent | 444ff284c4097081108e0eded4711247aacda740 (diff) | |
download | busybox-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.c | 5 |
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; |