summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;