mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
event-loop.c: Use correct OS abstraction function for dupfd()
Signed-off-by: Philip Withnall <philip at tecnocode.co.uk> Signed-off-by: Karsten Otto <ottoka at posteo.de> Reviewed-by: David Fort <contact at hardening-consulting.com> Reviewed-by: Marek Chalupa <mchqwerty@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
18cb5432ff
commit
a1e4cabff5
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ wl_event_loop_add_fd(struct wl_event_loop *loop,
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
source->base.interface = &fd_source_interface;
|
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->func = func;
|
||||||
source->fd = fd;
|
source->fd = fd;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue