summaryrefslogtreecommitdiffstats
path: root/tools/idevicename.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/idevicename.c')
-rw-r--r--tools/idevicename.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/idevicename.c b/tools/idevicename.c
index ef226f7..a66f5aa 100644
--- a/tools/idevicename.c
+++ b/tools/idevicename.c
@@ -28,6 +28,9 @@
#include <unistd.h>
#include <stdlib.h>
#include <getopt.h>
+#ifndef WIN32
+#include <signal.h>
+#endif
#include <libimobiledevice/libimobiledevice.h>
#include <libimobiledevice/lockdown.h>
@@ -57,6 +60,10 @@ int main(int argc, char** argv)
{ NULL, 0, NULL, 0}
};
+#ifndef WIN32
+ signal(SIGPIPE, SIG_IGN);
+#endif
+
while ((c = getopt_long(argc, argv, "du:h", longopts, &optidx)) != -1) {
switch (c) {
case 'u':