From 4e2c4e1e3a304cc48bdcbcd673fe2daa73b6381a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 22 Jun 2021 20:18:23 +0200 Subject: [PATCH] particle: on-mouse: close the read pipe after reading from it, in parent --- particle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/particle.c b/particle.c index 5748cce..a1e2b2c 100644 --- a/particle.c +++ b/particle.c @@ -295,6 +295,8 @@ exposable_default_on_mouse(struct exposable *exposable, struct bar *bar, int _errno = 0; ssize_t ret = read(pipe_fds[0], &_errno, sizeof(_errno)); + close(pipe_fds[0]); + if (ret == 0) { /* Pipe was closed - child succeeded with exec() */ _exit(0);