Forgot to make the eventfd cloexec and non-blocking
This commit is contained in:
parent
a41ef8d513
commit
556992a117
2
glfw/backend_utils.c
vendored
2
glfw/backend_utils.c
vendored
@ -231,7 +231,7 @@ bool
|
||||
initPollData(EventLoopData *eld, int display_fd) {
|
||||
if (!addWatch(eld, "display", display_fd, POLLIN, 1, NULL, NULL)) return false;
|
||||
#ifdef HAS_EVENT_FD
|
||||
eld->wakeupFd = eventfd(0, 0);
|
||||
eld->wakeupFd = eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK);
|
||||
if (eld->wakeupFd == -1) return false;
|
||||
const int wakeup_fd = eld->wakeupFd;
|
||||
#else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user