diff options
Diffstat (limited to 'tools/ideviceimagemounter.c')
| -rw-r--r-- | tools/ideviceimagemounter.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/ideviceimagemounter.c b/tools/ideviceimagemounter.c index 93cab09..74df5e4 100644 --- a/tools/ideviceimagemounter.c +++ b/tools/ideviceimagemounter.c | |||
| @@ -34,6 +34,9 @@ | |||
| 34 | #include <time.h> | 34 | #include <time.h> |
| 35 | #include <sys/time.h> | 35 | #include <sys/time.h> |
| 36 | #include <inttypes.h> | 36 | #include <inttypes.h> |
| 37 | #ifndef WIN32 | ||
| 38 | #include <signal.h> | ||
| 39 | #endif | ||
| 37 | 40 | ||
| 38 | #include <libimobiledevice/libimobiledevice.h> | 41 | #include <libimobiledevice/libimobiledevice.h> |
| 39 | #include <libimobiledevice/lockdown.h> | 42 | #include <libimobiledevice/lockdown.h> |
| @@ -153,6 +156,9 @@ int main(int argc, char **argv) | |||
| 153 | size_t image_size = 0; | 156 | size_t image_size = 0; |
| 154 | char *image_sig_path = NULL; | 157 | char *image_sig_path = NULL; |
| 155 | 158 | ||
| 159 | #ifndef WIN32 | ||
| 160 | signal(SIGPIPE, SIG_IGN); | ||
| 161 | #endif | ||
| 156 | parse_opts(argc, argv); | 162 | parse_opts(argc, argv); |
| 157 | 163 | ||
| 158 | argc -= optind; | 164 | argc -= optind; |
