diff options
author | Nikias Bassen | 2019-09-28 12:30:05 +0200 |
---|---|---|
committer | Nikias Bassen | 2019-09-28 12:30:05 +0200 |
commit | b37ce232a44e4e212f71d3792cbd3d86e2f9ac33 (patch) | |
tree | 63889e64c3b952d12252b4791ec7f9dbfe21249e /src/ideviceinstaller.c | |
parent | ab9352110092cf651b5602301371cd00691c7e13 (diff) | |
download | ideviceinstaller-b37ce232a44e4e212f71d3792cbd3d86e2f9ac33.tar.gz ideviceinstaller-b37ce232a44e4e212f71d3792cbd3d86e2f9ac33.tar.bz2 |
Ignore SIGPIPE
Diffstat (limited to 'src/ideviceinstaller.c')
-rw-r--r-- | src/ideviceinstaller.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index 27b4669..190d8a2 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c @@ -40,6 +40,9 @@ #ifdef HAVE_UNISTD_H #include <unistd.h> #endif +#ifndef WIN32 +#include <signal.h> +#endif #include <libimobiledevice/libimobiledevice.h> #include <libimobiledevice/lockdown.h> @@ -641,6 +644,9 @@ int main(int argc, char **argv) int res = 0; char *bundleidentifier = NULL; +#ifndef WIN32 + signal(SIGPIPE, SIG_IGN); +#endif parse_opts(argc, argv); argc -= optind; |