mirror of
https://github.com/Cloudef/bemenu
synced 2025-02-23 02:16:48 +00: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:
parent
8ad07cff11
commit
312a606d54
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user