From 35d7b2bc4a533e0479d085bbeb6c00556db4f72b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 28 Dec 2018 12:41:05 +0100 Subject: [PATCH] bar: add EFD_CLOEXEC flag to 'ready' eventfd --- bar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bar.c b/bar.c index 0aa61df..6eba97e 100644 --- a/bar.c +++ b/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++) {