]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpd: disable SIGPIPE signal
authorVincent Bernat <bernat@luffy.cx>
Thu, 24 May 2012 17:10:34 +0000 (19:10 +0200)
committerVincent Bernat <bernat@luffy.cx>
Thu, 24 May 2012 17:10:34 +0000 (19:10 +0200)
src/lldpd.c

index 1880c3fb08597ce5401ad2d3531ecd5488dd0fae..702ef3f628209a5d187a2279b3ebe8e394b90f5c 100644 (file)
@@ -1176,6 +1176,9 @@ lldpd_main(int argc, char *argv[])
                S_IRGRP | S_IWGRP | S_IXGRP) == -1)
                LLOG_WARN("unable to chmod control socket");
 
+       /* Disable SIGPIPE */
+       signal(SIGPIPE, SIG_IGN);
+
        /* Detach if needed */
        if (!debug) {
                int pid;