[PATCH 06/12] event-loop.c: Use correct OS abstraction function for dupfd()
Philip Withnall
philip at tecnocode.co.uk
Fri Feb 15 04:56:52 PST 2013
Signed-off-by: Philip Withnall <philip at tecnocode.co.uk>
---
src/event-loop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/event-loop.c b/src/event-loop.c
index 05baa48..6330763 100644
--- a/src/event-loop.c
+++ b/src/event-loop.c
@@ -220,7 +220,7 @@ wl_event_loop_add_fd(struct wl_event_loop *loop,
return NULL;
source->base.interface = &fd_source_interface;
- source->base.fd = fcntl(fd, F_DUPFD_CLOEXEC, 0);
+ source->base.fd = wl_os_dupfd_cloexec(fd, 0);
source->func = func;
source->fd = fd;
--
1.7.11.7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20130215/04bc6167/attachment.pgp>
More information about the wayland-devel
mailing list