aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--iptables/iptables-standalone.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/iptables/iptables-standalone.c b/iptables/iptables-standalone.c
index 87f1d31a..6cf8483a 100644
--- a/iptables/iptables-standalone.c
+++ b/iptables/iptables-standalone.c
@@ -34,6 +34,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
+#include <signal.h>
#include <string.h>
#include <iptables.h>
#include "iptables-multi.h"
@@ -50,6 +51,8 @@ main(int argc, char *argv[])
char *table = "filter";
struct iptc_handle *handle = NULL;
+ signal(SIGPIPE, SIG_IGN);
+
iptables_globals.program_name = "iptables";
ret = xtables_init_all(&iptables_globals, NFPROTO_IPV4);
if (ret < 0) {