From 1c85d092b271b3fddc3a4577ff6970c84ce2367d Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Tue, 11 Nov 2014 21:26:25 +0000 Subject: [PATCH] don't handle SIGPIPE on windows yet --- platforms/posix/src/daemon.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platforms/posix/src/daemon.c b/platforms/posix/src/daemon.c index 3d517ecad..94f6dda5d 100644 --- a/platforms/posix/src/daemon.c +++ b/platforms/posix/src/daemon.c @@ -1703,13 +1703,17 @@ int main (int argc, char * const * argv){ signal(SIGINT, daemon_sigint_handler); // handle SIGTERM - suggested for launchd signal(SIGTERM, daemon_sigint_handler); + + // TODO: win32 variant +#ifndef _WIN32 // handle SIGPIPE struct sigaction act; act.sa_handler = SIG_IGN; sigemptyset (&act.sa_mask); act.sa_flags = 0; sigaction (SIGPIPE, &act, NULL); - +#endif + bt_control_t * control = NULL; #ifdef HAVE_TRANSPORT_H4