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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user