Commit 94479ca4 authored by Sean McNamara's avatar Sean McNamara Committed by Max Kellermann

event_pipe can only be non-blocking if !WIN32

parent f5ff243a
...@@ -91,8 +91,10 @@ void event_pipe_init(void) ...@@ -91,8 +91,10 @@ void event_pipe_init(void)
#endif #endif
if (ret < 0) if (ret < 0)
g_error("Couldn't open pipe: %s", strerror(errno)); g_error("Couldn't open pipe: %s", strerror(errno));
#ifndef WIN32
if (set_nonblocking(event_pipe[1]) < 0) if (set_nonblocking(event_pipe[1]) < 0)
g_error("Couldn't set non-blocking I/O: %s", strerror(errno)); g_error("Couldn't set non-blocking I/O: %s", strerror(errno));
#endif
channel = g_io_channel_unix_new(event_pipe[0]); channel = g_io_channel_unix_new(event_pipe[0]);
event_pipe_source_id = g_io_add_watch(channel, G_IO_IN, event_pipe_source_id = g_io_add_watch(channel, G_IO_IN,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment