aboutsummaryrefslogtreecommitdiffstats
path: root/src/event_pipe.c
diff options
context:
space:
mode:
authorSean McNamara <smcnam@gmail.com>2009-03-27 12:50:59 -0400
committerMax Kellermann <max@duempel.org>2009-03-27 18:03:46 +0100
commit94479ca40fad5e483dca6d363542792df3d5f589 (patch)
treed9316d2506b7e68da5765367d198812e67548bc6 /src/event_pipe.c
parentf5ff243a8b4264c34a362f88dbcfa04a830e2721 (diff)
downloadmpd-94479ca40fad5e483dca6d363542792df3d5f589.tar.gz
mpd-94479ca40fad5e483dca6d363542792df3d5f589.tar.xz
mpd-94479ca40fad5e483dca6d363542792df3d5f589.zip
event_pipe can only be non-blocking if !WIN32
Diffstat (limited to '')
-rw-r--r--src/event_pipe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event_pipe.c b/src/event_pipe.c
index b046b4098..6eddd0b1b 100644
--- a/src/event_pipe.c
+++ b/src/event_pipe.c
@@ -91,8 +91,10 @@ void event_pipe_init(void)
#endif
if (ret < 0)
g_error("Couldn't open pipe: %s", strerror(errno));
+#ifndef WIN32
if (set_nonblocking(event_pipe[1]) < 0)
g_error("Couldn't set non-blocking I/O: %s", strerror(errno));
+#endif
channel = g_io_channel_unix_new(event_pipe[0]);
event_pipe_source_id = g_io_add_watch(channel, G_IO_IN,