From: LRN Date: Fri, 15 Feb 2013 10:03:22 +0000 (+0000) Subject: Try to fix process spawning X-Git-Tag: initial-import-from-subversion-38251~9913 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8bf5eb5b252c3473892b279cfa7a544f1f1c833a;p=oweals%2Fgnunet.git Try to fix process spawning --- 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));