projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prevent the secchan from dying due to SIGPIPE.
[openvswitch]
/
secchan
/
secchan.c
diff --git
a/secchan/secchan.c
b/secchan/secchan.c
index 64a1f233a5db45ce14ff08197966dde6418c7718..af52ed5eb721d7f5b218080824f80599fe254d58 100644
(file)
--- a/
secchan/secchan.c
+++ b/
secchan/secchan.c
@@
-40,6
+40,7
@@
#include <poll.h>
#include <regex.h>
#include <stdlib.h>
#include <poll.h>
#include <regex.h>
#include <stdlib.h>
+#include <signal.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
@@
-179,6
+180,7
@@
main(int argc, char *argv[])
time_init();
vlog_init();
parse_options(argc, argv, &s);
time_init();
vlog_init();
parse_options(argc, argv, &s);
+ signal(SIGPIPE, SIG_IGN);
/* Start listening for management connections. */
if (s.listen_vconn_name) {
/* Start listening for management connections. */
if (s.listen_vconn_name) {