From b37ce232a44e4e212f71d3792cbd3d86e2f9ac33 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 28 Sep 2019 12:30:05 +0200 Subject: Ignore SIGPIPE --- src/ideviceinstaller.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 #endif +#ifndef WIN32 +#include +#endif #include #include @@ -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; -- cgit v1.1-32-gdbae