diff options
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/util.c b/src/common/util.c index 3950fc1695..1807ee7adc 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -3470,6 +3470,10 @@ tor_spawn_background(const char *const filename, const char **argv, log_warn(LD_GENERAL, "Failed to set up pipe for stderr communication with child process: %s", strerror(errno)); + + close(stdout_pipe[0]); + close(stdout_pipe[1]); + return status; } |