mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -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;
|
||||
|
||||
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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue