forked from external/yambar
bar: add EFD_CLOEXEC flag to 'ready' eventfd
This commit is contained in:
parent
904f9ff8e1
commit
35d7b2bc4a
1 changed files with 1 additions and 1 deletions
2
bar.c
2
bar.c
|
@ -397,7 +397,7 @@ run(struct bar_run_context *run_ctx)
|
|||
struct module_run_context run_ctx_center[bar->center.count];
|
||||
struct module_run_context run_ctx_right[bar->right.count];
|
||||
|
||||
int ready_fd = eventfd(0, EFD_SEMAPHORE);
|
||||
int ready_fd = eventfd(0, EFD_CLOEXEC | EFD_SEMAPHORE);
|
||||
assert(ready_fd != -1);
|
||||
|
||||
for (size_t i = 0; i < bar->left.count; i++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue