summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-09-28 12:28:58 +0200
committerGravatar Nikias Bassen2019-09-28 12:28:58 +0200
commit31fc3659703297cc0497206b0bbfda03465952ac (patch)
tree1d1768873cc8df92832b5faf8432b06a42d07b2d
parent0d053f45e8de108654454dc4a50e7f4fa2874f3f (diff)
downloadlibideviceactivation-31fc3659703297cc0497206b0bbfda03465952ac.tar.gz
libideviceactivation-31fc3659703297cc0497206b0bbfda03465952ac.tar.bz2
Ignore SIGPIPE
-rw-r--r--tools/ideviceactivation.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/ideviceactivation.c b/tools/ideviceactivation.c
index efaee96..6e6dd6b 100644
--- a/tools/ideviceactivation.c
+++ b/tools/ideviceactivation.c
@@ -30,6 +30,9 @@
#include <string.h>
#include <unistd.h>
#include <ctype.h>
+#ifndef WIN32
+#include <signal.h>
+#endif
#include <plist/plist.h>
#include <libimobiledevice/lockdown.h>
@@ -137,6 +140,9 @@ int main(int argc, char *argv[])
} op_t;
op_t op = OP_NONE;
+#ifndef WIN32
+ signal(SIGPIPE, SIG_IGN);
+#endif
/* parse cmdline args */
for (i = 1; i < argc; i++) {
if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) {