summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTobias Kortkamp <t@tobik.me>2019-04-23 11:41:03 +0200
committerTobias Kortkamp <t@tobik.me>2019-04-23 11:41:03 +0200
commit312a606d54455e5d6549906275710605c6784a1e (patch)
treeb371ec3cef726f21bff13ffd53d4e09e0dfbbf50 /lib
parent8ad07cff1121ca8444aa74161792928adef21501 (diff)
downloadbemenu-312a606d54455e5d6549906275710605c6784a1e.tar.gz
bemenu-312a606d54455e5d6549906275710605c6784a1e.tar.bz2
bemenu-312a606d54455e5d6549906275710605c6784a1e.zip
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/renderers/wayland/wayland.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/renderers/wayland/wayland.c b/lib/renderers/wayland/wayland.c
index 442b0f6..603cd8b 100644
--- a/lib/renderers/wayland/wayland.c
+++ b/lib/renderers/wayland/wayland.c
@@ -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;