summaryrefslogtreecommitdiffstats
path: root/src/ideviceinstaller.c
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 /src/ideviceinstaller.c
parentab9352110092cf651b5602301371cd00691c7e13 (diff)
downloadideviceinstaller-b37ce232a44e4e212f71d3792cbd3d86e2f9ac33.tar.gz
ideviceinstaller-b37ce232a44e4e212f71d3792cbd3d86e2f9ac33.tar.bz2
Ignore SIGPIPE
Diffstat (limited to 'src/ideviceinstaller.c')
-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 @@
40#ifdef HAVE_UNISTD_H 40#ifdef HAVE_UNISTD_H
41#include <unistd.h> 41#include <unistd.h>
42#endif 42#endif
43#ifndef WIN32
44#include <signal.h>
45#endif
43 46
44#include <libimobiledevice/libimobiledevice.h> 47#include <libimobiledevice/libimobiledevice.h>
45#include <libimobiledevice/lockdown.h> 48#include <libimobiledevice/lockdown.h>
@@ -641,6 +644,9 @@ int main(int argc, char **argv)
641 int res = 0; 644 int res = 0;
642 char *bundleidentifier = NULL; 645 char *bundleidentifier = NULL;
643 646
647#ifndef WIN32
648 signal(SIGPIPE, SIG_IGN);
649#endif
644 parse_opts(argc, argv); 650 parse_opts(argc, argv);
645 651
646 argc -= optind; 652 argc -= optind;