]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpcli: disable SIGPIPE
authorVincent Bernat <vincent@bernat.im>
Sun, 31 Aug 2014 05:35:06 +0000 (07:35 +0200)
committerVincent Bernat <vincent@bernat.im>
Sun, 31 Aug 2014 05:35:06 +0000 (07:35 +0200)
We handle EOF inside the code.

src/client/lldpcli.c

index d3e4ba6e6c69f667c6ce72f2af556aa0c3eb1ba5..8eeac70ed98c380b2e1f5b3e8b731f000628d58d 100644 (file)
@@ -469,6 +469,9 @@ main(int argc, char *argv[])
                }
        }
 
+       /* Disable SIGPIPE */
+       signal(SIGPIPE, SIG_IGN);
+
        /* Register commands */
        root = register_commands();