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/socket_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/socket_util.c') diff --git a/src/socket_util.c b/src/socket_util.c index edbc67d12..e737fdf06 100644 --- a/src/socket_util.c +++ b/src/socket_util.c @@ -103,7 +103,7 @@ socket_bind_listen(int domain, int type, int protocol, int passcred = 1; #endif - fd = socket_cloexec(domain, type, protocol); + fd = socket_cloexec_nonblock(domain, type, protocol); if (fd < 0) { g_set_error(error, listen_quark(), errno, "Failed to create socket: %s", g_strerror(errno)); -- cgit v1.2.3