mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-23 20:35:42 +02:00
module/script: don’t re-close comm-pipe on failure
This commit is contained in:
parent
c11a79c98d
commit
31f6a4a6a0
1 changed files with 4 additions and 1 deletions
|
@ -475,13 +475,16 @@ run(struct module *mod)
|
|||
goto fail;
|
||||
}
|
||||
|
||||
/* We're done with the redirection pipe */
|
||||
close(comm_pipe[1]);
|
||||
comm_pipe[1] = -1;
|
||||
|
||||
execvp(m->path, argv);
|
||||
|
||||
fail:
|
||||
(void)!write(exec_pipe[1], &errno, sizeof(errno));
|
||||
close(exec_pipe[1]);
|
||||
if (comm_pipe[1] >= 0)
|
||||
close(comm_pipe[1]);
|
||||
_exit(errno);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue