diff options
author | Nikias Bassen | 2019-09-28 12:08:12 +0200 |
---|---|---|
committer | Nikias Bassen | 2019-09-28 12:08:53 +0200 |
commit | 8c7321b11512cc3cfd112ad2b4b65c5a81e12bba (patch) | |
tree | 306caad40518dbb123051efef3ce06ff3f3b7001 /tools/ideviceenterrecovery.c | |
parent | 92d95d0b8f1870d7cc9eb809a993b04b0e733205 (diff) | |
download | libimobiledevice-8c7321b11512cc3cfd112ad2b4b65c5a81e12bba.tar.gz libimobiledevice-8c7321b11512cc3cfd112ad2b4b65c5a81e12bba.tar.bz2 |
tools: Ignore SIGPIPE wherever possible
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 @@ #include <string.h> #include <errno.h> #include <stdlib.h> +#ifndef WIN32 +#include <signal.h> +#endif #include <libimobiledevice/libimobiledevice.h> #include <libimobiledevice/lockdown.h> @@ -53,6 +56,9 @@ int main(int argc, char *argv[]) int i; const char* udid = NULL; +#ifndef WIN32 + signal(SIGPIPE, SIG_IGN); +#endif /* parse cmdline args */ for (i = 1; i < argc; i++) { if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { |