[PATCH 2/4] event-loop.c: Use correct OS abstraction function for dupfd()
Marek Chalupa
mchqwerty at gmail.com
Wed Oct 8 04:55:11 PDT 2014
Reviewed-by: Marek Chalupa <mchqwerty at gmail.com>
On 28 September 2014 20:49, Karsten Otto <karsten.otto at posteo.de> wrote:
> From: Philip Withnall <philip at tecnocode.co.uk>
>
> 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 a149db9..1f571ba 100644
> --- a/src/event-loop.c
> +++ b/src/event-loop.c
> @@ -134,7 +134,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.9.1
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20141008/1f52ad06/attachment.html>
More information about the wayland-devel
mailing list