From: Vincent Bernat Date: Sat, 12 Jan 2013 23:03:32 +0000 (+0100) Subject: systemd: don't use SOCK_CLOEXEC X-Git-Tag: 0.7.1~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ceb3792235a34157cd89f66d5277ad5de16bcf34;p=thirdparty%2Flldpd.git systemd: don't use SOCK_CLOEXEC It is unknown on RHEL5. Moreover, we promise to not exec anything in this function. --- diff --git a/src/daemon/lldpd.c b/src/daemon/lldpd.c index 630c3e76..3f7c012a 100644 --- a/src/daemon/lldpd.c +++ b/src/daemon/lldpd.c @@ -1061,7 +1061,7 @@ lldpd_started_by_systemd() return 0; log_debug("main", "running with systemd, don't fork but signal ready"); - if ((fd = socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0)) < 0) { + if ((fd = socket(AF_UNIX, SOCK_DGRAM, 0)) < 0) { log_warn("main", "unable to open systemd notification socket %s", notifysocket); return 0;