diff options
| author | 2019-09-28 12:08:12 +0200 | |
|---|---|---|
| committer | 2019-09-28 12:08:53 +0200 | |
| commit | 8c7321b11512cc3cfd112ad2b4b65c5a81e12bba (patch) | |
| tree | 306caad40518dbb123051efef3ce06ff3f3b7001 /tools/ideviceprovision.c | |
| parent | 92d95d0b8f1870d7cc9eb809a993b04b0e733205 (diff) | |
| download | libimobiledevice-8c7321b11512cc3cfd112ad2b4b65c5a81e12bba.tar.gz libimobiledevice-8c7321b11512cc3cfd112ad2b4b65c5a81e12bba.tar.bz2 | |
tools: Ignore SIGPIPE wherever possible
Diffstat (limited to 'tools/ideviceprovision.c')
| -rw-r--r-- | tools/ideviceprovision.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/ideviceprovision.c b/tools/ideviceprovision.c index 52efdeb..7e8367a 100644 --- a/tools/ideviceprovision.c +++ b/tools/ideviceprovision.c | |||
| @@ -29,6 +29,9 @@ | |||
| 29 | #include <string.h> | 29 | #include <string.h> |
| 30 | #include <sys/stat.h> | 30 | #include <sys/stat.h> |
| 31 | #include <errno.h> | 31 | #include <errno.h> |
| 32 | #ifndef WIN32 | ||
| 33 | #include <signal.h> | ||
| 34 | #endif | ||
| 32 | 35 | ||
| 33 | #ifdef WIN32 | 36 | #ifdef WIN32 |
| 34 | #include <windows.h> | 37 | #include <windows.h> |
| @@ -291,6 +294,9 @@ int main(int argc, char *argv[]) | |||
| 291 | const char* param = NULL; | 294 | const char* param = NULL; |
| 292 | const char* param2 = NULL; | 295 | const char* param2 = NULL; |
| 293 | 296 | ||
| 297 | #ifndef WIN32 | ||
| 298 | signal(SIGPIPE, SIG_IGN); | ||
| 299 | #endif | ||
| 294 | /* parse cmdline args */ | 300 | /* parse cmdline args */ |
| 295 | for (i = 1; i < argc; i++) { | 301 | for (i = 1; i < argc; i++) { |
| 296 | if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { | 302 | if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { |
