diff options
Diffstat (limited to 'tools/ideviceinfo.c')
-rw-r--r-- | tools/ideviceinfo.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/ideviceinfo.c b/tools/ideviceinfo.c index 59fade8..a1124cf 100644 --- a/tools/ideviceinfo.c +++ b/tools/ideviceinfo.c @@ -27,6 +27,9 @@ #include <string.h> #include <errno.h> #include <stdlib.h> +#ifndef WIN32 +#include <signal.h> +#endif #include <libimobiledevice/libimobiledevice.h> #include <libimobiledevice/lockdown.h> @@ -121,6 +124,9 @@ int main(int argc, char *argv[]) uint32_t xml_length; plist_t node = NULL; +#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")) { |