mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-20 03:35:41 +02:00
particle: on-mouse: close the read pipe after reading from it, in parent
This commit is contained in:
parent
13ef977eeb
commit
4e2c4e1e3a
1 changed files with 2 additions and 0 deletions
|
@ -295,6 +295,8 @@ exposable_default_on_mouse(struct exposable *exposable, struct bar *bar,
|
||||||
|
|
||||||
int _errno = 0;
|
int _errno = 0;
|
||||||
ssize_t ret = read(pipe_fds[0], &_errno, sizeof(_errno));
|
ssize_t ret = read(pipe_fds[0], &_errno, sizeof(_errno));
|
||||||
|
close(pipe_fds[0]);
|
||||||
|
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
/* Pipe was closed - child succeeded with exec() */
|
/* Pipe was closed - child succeeded with exec() */
|
||||||
_exit(0);
|
_exit(0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue