aboutsummaryrefslogtreecommitdiff
path: root/src/Program.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Program.c')
-rw-r--r--src/Program.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Program.c b/src/Program.c
index 65164c4..47b0e33 100644
--- a/src/Program.c
+++ b/src/Program.c
@@ -27,6 +27,8 @@ int exec_program(const char **args, ProgramOutputCallback output_callback, void
pid_t pid = fork();
if(pid == -1) {
perror("Failed to fork");
+ close(fd[READ_END]);
+ close(fd[WRITE_END]);
return -3;
} else if(pid == 0) { /* child */
if(prctl(PR_SET_PDEATHSIG, SIGTERM) == -1) {