forked from external/yambar
particle: on-mouse: don’t close our own pipe FD before the execvp()
This commit is contained in:
parent
34d832cd22
commit
13ef977eeb
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue