diff options
author | JP Abgrall <jpa@google.com> | 2012-11-13 13:36:56 -0800 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2012-11-13 13:36:56 -0800 |
commit | 93e814c9b08136846335ce463192d90ba59766bb (patch) | |
tree | a6f6abcbc8e3388688b20057dff5992e1a12b58b | |
parent | e07e0d31f48d951e0f03ba254d4754810732c241 (diff) | |
parent | e482ec0a8b1a3b88bbf13f518a5a7261966b1628 (diff) | |
download | platform_external_iptables-kitkat-cts-release.tar.gz platform_external_iptables-kitkat-cts-release.tar.bz2 platform_external_iptables-kitkat-cts-release.zip |
Merge "ignore SIGPIPES"android-cts-4.4_r4android-4.4_r1.2.0.1android-4.4_r1.2android-4.4_r1.1.0.1android-4.4_r1.1android-4.4_r1.0.1android-4.4_r1android-4.4_r0.9android-4.4_r0.8android-4.3_r2.3android-4.3_r2.2android-4.3_r2.1android-4.3_r2android-4.3_r1.1android-4.3_r1android-4.3_r0.9.1android-4.3_r0.9kitkat-releasekitkat-cts-releasejb-mr2.0-releasejb-mr2-releasejb-mr1-dev-plus-aosp
-rw-r--r-- | iptables/iptables-standalone.c | 3 |
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) { |