diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-14 05:56:01 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-14 05:56:01 +0200 |
commit | 170d2e7b14fcdbd88fd2839bbd3dffd00df5196b (patch) | |
tree | ce401b32db9733afafc28f57e9dca3d588e44feb /src/Program.c | |
parent | dc72e253df77c9126c720e7ff5dad7f8c72bd117 (diff) |
Render tabs above body
Diffstat (limited to 'src/Program.c')
-rw-r--r-- | src/Program.c | 2 |
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) { |