From f66edccffdc4a9276ae9dced69fa6fb74ee1f97e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 8 Nov 2009 22:11:35 +0100 Subject: fd_util: added O_NONBLOCK functions Changed the wrappers for pipe(), socket(), accept(). On WIN32, this does not work for pipe(). --- src/output/httpd_output_plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/output') 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 && -- cgit v1.2.3