diff options
Diffstat (limited to 'tools/ideviceenterrecovery.c')
| -rw-r--r-- | tools/ideviceenterrecovery.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/ideviceenterrecovery.c b/tools/ideviceenterrecovery.c index 69484cc..ec9093b 100644 --- a/tools/ideviceenterrecovery.c +++ b/tools/ideviceenterrecovery.c | |||
| @@ -27,6 +27,9 @@ | |||
| 27 | #include <string.h> | 27 | #include <string.h> |
| 28 | #include <errno.h> | 28 | #include <errno.h> |
| 29 | #include <stdlib.h> | 29 | #include <stdlib.h> |
| 30 | #ifndef WIN32 | ||
| 31 | #include <signal.h> | ||
| 32 | #endif | ||
| 30 | 33 | ||
| 31 | #include <libimobiledevice/libimobiledevice.h> | 34 | #include <libimobiledevice/libimobiledevice.h> |
| 32 | #include <libimobiledevice/lockdown.h> | 35 | #include <libimobiledevice/lockdown.h> |
| @@ -53,6 +56,9 @@ int main(int argc, char *argv[]) | |||
| 53 | int i; | 56 | int i; |
| 54 | const char* udid = NULL; | 57 | const char* udid = NULL; |
| 55 | 58 | ||
| 59 | #ifndef WIN32 | ||
| 60 | signal(SIGPIPE, SIG_IGN); | ||
| 61 | #endif | ||
| 56 | /* parse cmdline args */ | 62 | /* parse cmdline args */ |
| 57 | for (i = 1; i < argc; i++) { | 63 | for (i = 1; i < argc; i++) { |
| 58 | if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { | 64 | if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { |
