diff options
author | LRN <lrn1986@gmail.com> | 2013-02-15 10:03:22 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-02-15 10:03:22 +0000 |
commit | 8bf5eb5b252c3473892b279cfa7a544f1f1c833a (patch) | |
tree | a0d772bc5332679f55da16cfa482ad5a9df54bdd /src/util | |
parent | 7b73eb9ab0cc02f1a34e34766f787cd9c0a15889 (diff) | |
download | gnunet-8bf5eb5b252c3473892b279cfa7a544f1f1c833a.tar.gz gnunet-8bf5eb5b252c3473892b279cfa7a544f1f1c833a.zip |
Try to fix process spawning
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/os_priority.c | 3 |
1 files changed, 3 insertions, 0 deletions
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, | |||
655 | { | 655 | { |
656 | childpipe_read = NULL; | 656 | childpipe_read = NULL; |
657 | childpipe_write = NULL; | 657 | childpipe_write = NULL; |
658 | childpipe_read_fd = -1; | ||
658 | } | 659 | } |
659 | if (NULL != pipe_stdout) | 660 | if (NULL != pipe_stdout) |
660 | { | 661 | { |
@@ -730,6 +731,8 @@ start_process (int pipe_control, | |||
730 | snprintf (fdbuf, 100, "%x", childpipe_read_fd); | 731 | snprintf (fdbuf, 100, "%x", childpipe_read_fd); |
731 | setenv (GNUNET_OS_CONTROL_PIPE, fdbuf, 1); | 732 | setenv (GNUNET_OS_CONTROL_PIPE, fdbuf, 1); |
732 | } | 733 | } |
734 | else | ||
735 | unsetenv (GNUNET_OS_CONTROL_PIPE); | ||
733 | if (NULL != pipe_stdin) | 736 | if (NULL != pipe_stdin) |
734 | { | 737 | { |
735 | GNUNET_break (0 == close (fd_stdin_write)); | 738 | GNUNET_break (0 == close (fd_stdin_write)); |