diff options
author | Max Kellermann <max@duempel.org> | 2009-11-08 22:11:35 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-11-08 22:11:35 +0100 |
commit | f66edccffdc4a9276ae9dced69fa6fb74ee1f97e (patch) | |
tree | 3350b0852762cb393c12054e28c999532b4fd027 /src/output | |
parent | b043ade456818a414c726c8525bb8ec63658edc8 (diff) | |
download | mpd-f66edccffdc4a9276ae9dced69fa6fb74ee1f97e.tar.gz mpd-f66edccffdc4a9276ae9dced69fa6fb74ee1f97e.tar.xz mpd-f66edccffdc4a9276ae9dced69fa6fb74ee1f97e.zip |
fd_util: added O_NONBLOCK functions
Changed the wrappers for pipe(), socket(), accept(). On WIN32, this
does not work for pipe().
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/httpd_output_plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/output/httpd_output_plugin.c b/src/output/httpd_output_plugin.c index 6d5e99c57..53bcc2deb 100644 --- a/src/output/httpd_output_plugin.c +++ b/src/output/httpd_output_plugin.c @@ -195,7 +195,8 @@ httpd_listen_in_event(G_GNUC_UNUSED GIOChannel *source, /* the listener socket has become readable - a client has connected */ - fd = accept_cloexec(httpd->fd, (struct sockaddr*)&sa, &sa_length); + fd = accept_cloexec_nonblock(httpd->fd, (struct sockaddr*)&sa, + &sa_length); if (fd >= 0) { /* can we allow additional client */ if (httpd->open && |