From 31fc3659703297cc0497206b0bbfda03465952ac Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 28 Sep 2019 12:28:58 +0200 Subject: Ignore SIGPIPE --- tools/ideviceactivation.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools') diff --git a/tools/ideviceactivation.c b/tools/ideviceactivation.c index efaee96..6e6dd6b 100644 --- a/tools/ideviceactivation.c +++ b/tools/ideviceactivation.c @@ -30,6 +30,9 @@ #include #include #include +#ifndef WIN32 +#include +#endif #include #include @@ -137,6 +140,9 @@ int main(int argc, char *argv[]) } op_t; op_t op = OP_NONE; +#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")) { -- cgit v1.1-32-gdbae