main: no need for EFD_NONBLOCK

This commit is contained in:
Daniel Eklöf 2018-12-28 12:41:21 +01:00
parent 35d7b2bc4a
commit c2e53a6bf7

2
main.c
View file

@ -37,7 +37,7 @@ main(int argc, const char *const *argv)
const struct sigaction sa = {.sa_handler = &signal_handler}; const struct sigaction sa = {.sa_handler = &signal_handler};
sigaction(SIGINT, &sa, NULL); sigaction(SIGINT, &sa, NULL);
int abort_fd = eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK); int abort_fd = eventfd(0, EFD_CLOEXEC);
assert(abort_fd >= 0); assert(abort_fd >= 0);
struct bar *bar = conf_to_bar(yml_get_value(conf, "bar")); struct bar *bar = conf_to_bar(yml_get_value(conf, "bar"));