1
0
Fork 0
mirror of https://github.com/Cloudef/bemenu synced 2024-06-01 04:16:21 +02:00

Use epoll_create1() instead of epoll_create()

epoll_create() takes a size argument not a flag like EPOLL_CLOEXEC [1].

[1] https://linux.die.net/man/2/epoll_create

Signed-off-by: Tobias Kortkamp <t@tobik.me>
This commit is contained in:
Tobias Kortkamp 2019-04-23 11:41:03 +02:00
parent 8ad07cff11
commit 312a606d54
No known key found for this signature in database
GPG Key ID: F4815C5F893E655D

View File

@ -286,7 +286,7 @@ constructor(struct bm_menu *menu)
wl_list_insert(&wayland->windows, &window->link);
}
if (!efd && (efd = epoll_create(EPOLL_CLOEXEC)) < 0)
if (!efd && (efd = epoll_create1(EPOLL_CLOEXEC)) < 0)
goto fail;
struct epoll_event ep;