diff options
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 fb7309538..24cab3b6c 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -512,6 +512,11 @@ static NOINLINE int create_socket(void) | |||
512 | int sock_fd; | 512 | int sock_fd; |
513 | char *dev_log_name; | 513 | char *dev_log_name; |
514 | 514 | ||
515 | #if ENABLE_FEATURE_SYSTEMD | ||
516 | if (sd_listen_fds() == 1) | ||
517 | return SD_LISTEN_FDS_START; | ||
518 | #endif | ||
519 | |||
515 | memset(&sunx, 0, sizeof(sunx)); | 520 | memset(&sunx, 0, sizeof(sunx)); |
516 | sunx.sun_family = AF_UNIX; | 521 | sunx.sun_family = AF_UNIX; |
517 | 522 | ||