particle: on-mouse: don’t close our own pipe FD before the execvp()

This commit is contained in:
Daniel Eklöf 2021-06-22 20:17:58 +02:00
parent 34d832cd22
commit 13ef977eeb
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -277,7 +277,8 @@ exposable_default_on_mouse(struct exposable *exposable, struct bar *bar,
/* Close *all* other FDs (e.g. script modules' FDs) */
for (int i = STDERR_FILENO + 1; i < 65536; i++)
close(i);
if (i != pipe_fds[1])
close(i);
execvp(argv[0], argv);