From 8bf5eb5b252c3473892b279cfa7a544f1f1c833a Mon Sep 17 00:00:00 2001 From: LRN Date: Fri, 15 Feb 2013 10:03:22 +0000 Subject: [PATCH] Try to fix process spawning --- src/util/os_priority.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/os_priority.c b/src/util/os_priority.c index 68b63908d..e4bb41cf5 100644 --- a/src/util/os_priority.c +++ b/src/util/os_priority.c @@ -655,6 +655,7 @@ start_process (int pipe_control, { childpipe_read = NULL; childpipe_write = NULL; + childpipe_read_fd = -1; } if (NULL != pipe_stdout) { @@ -730,6 +731,8 @@ start_process (int pipe_control, snprintf (fdbuf, 100, "%x", childpipe_read_fd); setenv (GNUNET_OS_CONTROL_PIPE, fdbuf, 1); } + else + unsetenv (GNUNET_OS_CONTROL_PIPE); if (NULL != pipe_stdin) { GNUNET_break (0 == close (fd_stdin_write)); -- 2.25.1