uclient-fetch: ignore SIGPIPE
authorFelix Fietkau <nbd@openwrt.org>
Sat, 16 Jan 2016 22:25:38 +0000 (23:25 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 16 Jan 2016 22:25:38 +0000 (23:25 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
uclient-fetch.c

index c64afb7e0b2b10ded49c967547af69a3c7f5343f..c2b7e69b45aa863472b8c139a0e123017f1cfccf 100644 (file)
@@ -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) {