summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-09-28 12:30:05 +0200
committerGravatar Nikias Bassen2019-09-28 12:30:05 +0200
commitb37ce232a44e4e212f71d3792cbd3d86e2f9ac33 (patch)
tree63889e64c3b952d12252b4791ec7f9dbfe21249e
parentab9352110092cf651b5602301371cd00691c7e13 (diff)
downloadideviceinstaller-b37ce232a44e4e212f71d3792cbd3d86e2f9ac33.tar.gz
ideviceinstaller-b37ce232a44e4e212f71d3792cbd3d86e2f9ac33.tar.bz2
Ignore SIGPIPE
-rw-r--r--src/ideviceinstaller.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index 27b4669..190d8a2 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -40,6 +40,9 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#ifndef WIN32
+#include <signal.h>
+#endif
#include <libimobiledevice/libimobiledevice.h>
#include <libimobiledevice/lockdown.h>
@@ -641,6 +644,9 @@ int main(int argc, char **argv)
int res = 0;
char *bundleidentifier = NULL;
+#ifndef WIN32
+ signal(SIGPIPE, SIG_IGN);
+#endif
parse_opts(argc, argv);
argc -= optind;