From 939b81a4ea72896a1b9f4f21653bbdc26be64e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 22 Oct 2021 18:06:43 +0200 Subject: [PATCH] bar/wayland: create comm pipe with CLOEXEC | NONBLOCK --- bar/wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bar/wayland.c b/bar/wayland.c index 4f69135..02e9ad6 100644 --- a/bar/wayland.c +++ b/bar/wayland.c @@ -1029,7 +1029,7 @@ setup(struct bar *_bar) assert(backend->monitor == NULL || backend->width / backend->monitor->scale <= backend->monitor->width_px); - if (pipe(backend->pipe_fds) == -1) { + if (pipe2(backend->pipe_fds, O_CLOEXEC | O_NONBLOCK) == -1) { LOG_ERRNO("failed to create pipe"); return false; }