diff options
Diffstat (limited to 'tools/idevicepair.c')
| -rw-r--r-- | tools/idevicepair.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/idevicepair.c b/tools/idevicepair.c index be1f373..bc0f5d8 100644 --- a/tools/idevicepair.c +++ b/tools/idevicepair.c | |||
| @@ -28,6 +28,9 @@ | |||
| 28 | #include <string.h> | 28 | #include <string.h> |
| 29 | #include <stdlib.h> | 29 | #include <stdlib.h> |
| 30 | #include <getopt.h> | 30 | #include <getopt.h> |
| 31 | #ifndef WIN32 | ||
| 32 | #include <signal.h> | ||
| 33 | #endif | ||
| 31 | #include "common/userpref.h" | 34 | #include "common/userpref.h" |
| 32 | 35 | ||
| 33 | #include <libimobiledevice/libimobiledevice.h> | 36 | #include <libimobiledevice/libimobiledevice.h> |
| @@ -134,6 +137,9 @@ int main(int argc, char **argv) | |||
| 134 | } op_t; | 137 | } op_t; |
| 135 | op_t op = OP_NONE; | 138 | op_t op = OP_NONE; |
| 136 | 139 | ||
| 140 | #ifndef WIN32 | ||
| 141 | signal(SIGPIPE, SIG_IGN); | ||
| 142 | #endif | ||
| 137 | parse_opts(argc, argv); | 143 | parse_opts(argc, argv); |
| 138 | 144 | ||
| 139 | if ((argc - optind) < 1) { | 145 | if ((argc - optind) < 1) { |
