diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-16 23:25:38 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-16 23:25:38 +0100 |
commit | 2c8a8ace280de8e91d998ac5c7507f456132361b (patch) | |
tree | 65b81cb2c8e3dcb4a74ecd7a93089e476d85844b | |
parent | 97f6c34884927dbf1b1858ab232e00c61fce48de (diff) | |
download | uclient-2c8a8ace280de8e91d998ac5c7507f456132361b.tar.gz |
uclient-fetch: ignore SIGPIPE
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | uclient-fetch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/uclient-fetch.c b/uclient-fetch.c index c64afb7..c2b7e69 100644 --- a/uclient-fetch.c +++ b/uclient-fetch.c @@ -26,6 +26,7 @@ #include <glob.h> #include <stdint.h> #include <inttypes.h> +#include <signal.h> #include <libubox/blobmsg.h> @@ -476,6 +477,7 @@ int main(int argc, char **argv) int i, ch; int rc; + signal(SIGPIPE, SIG_IGN); init_ustream_ssl(); while ((ch = getopt_long(argc, argv, "cO:qsU:Y:", longopts, &longopt_idx)) != -1) { |