2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

fatal-signal: SIGPIPE for Windows.

Windows does not have a SIGPIPE. We ignore SIGPIPE for
Linux. To compile on Windows, carve out a new function
to ignore SIGPIPE on Linux.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Gurucharan Shetty
2014-02-26 10:44:46 -08:00
parent 0c10054023
commit 8a777cf663
12 changed files with 29 additions and 10 deletions

View File

@@ -218,6 +218,14 @@ fatal_signal_wait(void)
poll_fd_wait_event(signal_fds[0], wevent, POLLIN);
}
void
fatal_ignore_sigpipe(void)
{
#ifndef _WIN32
signal(SIGPIPE, SIG_IGN);
#endif
}
static void
atexit_handler(void)
{