From c2db27c92341e1ba257102f6fb29a61f66c2fb6d Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 28 Sep 2019 12:32:32 +0200 Subject: tools: Ignore SIGPIPE --- tools/iproxy.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/iproxy.c') diff --git a/tools/iproxy.c b/tools/iproxy.c index a018cf7..0a9ca54 100644 --- a/tools/iproxy.c +++ b/tools/iproxy.c @@ -40,6 +40,7 @@ typedef unsigned int socklen_t; #include #include #include +#include #endif #include "socket.h" #include "usbmuxd.h" @@ -277,6 +278,9 @@ int main(int argc, char **argv) return -EINVAL; } +#ifndef WIN32 + signal(SIGPIPE, SIG_IGN); +#endif // first create the listening socket endpoint waiting for connections. mysock = socket_create(listen_port); if (mysock < 0) { -- cgit v1.1-32-gdbae