aboutsummaryrefslogtreecommitdiffstats
path: root/src/socket_util.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-08 22:11:35 +0100
committerMax Kellermann <max@duempel.org>2009-11-08 22:11:35 +0100
commitf66edccffdc4a9276ae9dced69fa6fb74ee1f97e (patch)
tree3350b0852762cb393c12054e28c999532b4fd027 /src/socket_util.c
parentb043ade456818a414c726c8525bb8ec63658edc8 (diff)
downloadmpd-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/socket_util.c')
-rw-r--r--src/socket_util.c2
1 files changed, 1 insertions, 1 deletions
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));