]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
systemd: don't use SOCK_CLOEXEC
authorVincent Bernat <bernat@luffy.cx>
Sat, 12 Jan 2013 23:03:32 +0000 (00:03 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sat, 12 Jan 2013 23:03:32 +0000 (00:03 +0100)
It is unknown on RHEL5. Moreover, we promise to not exec anything in
this function.

src/daemon/lldpd.c

index 630c3e766fc23230f91162e76dddd40cdef0a364..3f7c012a8fc130b11ade1a98e9fdc830c7702397 100644 (file)
@@ -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;