Prevent the secchan from dying due to SIGPIPE.

Fix for bug #88.
This commit is contained in:
Ben Pfaff committed 2008-08-12 16:21:45 -07:00
1 parent c9b82cb59c
commit 69abd4346d
4 files changed
+7

No files matched your search

+2
View 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");
+2
View File
@@ -40,6 +40,7 @@
#include <poll.h>
#include <regex.h>
#include <stdlib.h>
#include <signal.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);
signal(SIGPIPE, SIG_IGN);
/* Start listening for management connections. */
if (s.listen_vconn_name) {
+2
View File
@@ -35,6 +35,7 @@
#include <errno.h>
#include <getopt.h>
#include <limits.h>
#include <signal.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
@@ -81,6 +82,7 @@ main(int argc, char *argv[])
time_init();
vlog_init();
parse_options(argc, argv);
signal(SIGPIPE, SIG_IGN);
if (argc - optind != 1) {
fatal(0, "missing controller argument; use --help for usage");
+1
View File
@@ -88,6 +88,7 @@ int main(int argc, char *argv[])
time_init();
vlog_init();
parse_options(argc, argv);
signal(SIGPIPE, SIG_IGN);
argc -= optind;
argv += optind;