summaryrefslogtreecommitdiffstats
path: root/tools/idevicecrashreport.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/idevicecrashreport.c')
-rw-r--r--tools/idevicecrashreport.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/idevicecrashreport.c b/tools/idevicecrashreport.c
index 533265c..5d2e21d 100644
--- a/tools/idevicecrashreport.c
+++ b/tools/idevicecrashreport.c
@@ -28,6 +28,9 @@
28#include <stdlib.h> 28#include <stdlib.h>
29#include <string.h> 29#include <string.h>
30#include <unistd.h> 30#include <unistd.h>
31#ifndef WIN32
32#include <signal.h>
33#endif
31#include "common/utils.h" 34#include "common/utils.h"
32 35
33#include <libimobiledevice/libimobiledevice.h> 36#include <libimobiledevice/libimobiledevice.h>
@@ -322,6 +325,9 @@ int main(int argc, char* argv[])
322 int i; 325 int i;
323 const char* udid = NULL; 326 const char* udid = NULL;
324 327
328#ifndef WIN32
329 signal(SIGPIPE, SIG_IGN);
330#endif
325 /* parse cmdline args */ 331 /* parse cmdline args */
326 for (i = 1; i < argc; i++) { 332 for (i = 1; i < argc; i++) {
327 if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { 333 if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) {