rsyslog/rsyslog-systemd-integration.bnc656104.diff

17 lines
509 B
Diff

Index: plugins/imuxsock/imuxsock.c
===================================================================
--- plugins/imuxsock/imuxsock.c.orig
+++ plugins/imuxsock/imuxsock.c
@@ -782,6 +782,11 @@ CODESTARTwillRun
ABORT_FINALIZE(RS_RET_ERR_CRE_AFUX);
}
+ sd_fds = sd_listen_fds(0);
+ if (sd_fds < 0) {
+ errmsg.LogError(-sd_fds, NO_ERRCODE, "Failed to acquire systemd sockets");
+ }
+
/* initialize and return if will run or not */
actSocks = 0;
for (i = startIndexUxLocalSockets ; i < nfd ; i++) {