Prevent the secchan from dying due to SIGPIPE.
[openvswitch] / controller / controller.c
index bc18748e44febd4403f442a596de88f1b4fbcf77..01037bbb0d93851ec37b2ef6df14f8e14292f61e 100644 (file)
@@ -36,6 +36,7 @@
 #include <errno.h>
 #include <getopt.h>
 #include <limits.h>
+#include <signal.h>
 #include <stdlib.h>
 #include <string.h>
 
@@ -93,6 +94,7 @@ main(int argc, char *argv[])
     time_init();
     vlog_init();
     parse_options(argc, argv);
+    signal(SIGPIPE, SIG_IGN);
 
     if (argc - optind < 1) {
         fatal(0, "at least one vconn argument required; use --help for usage");