projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b73eb9
)
Try to fix process spawning
author
LRN
<lrn1986@gmail.com>
Fri, 15 Feb 2013 10:03:22 +0000
(10:03 +0000)
committer
LRN
<lrn1986@gmail.com>
Fri, 15 Feb 2013 10:03:22 +0000
(10:03 +0000)
src/util/os_priority.c
patch
|
blob
|
history
diff --git
a/src/util/os_priority.c
b/src/util/os_priority.c
index 68b63908d3b897d8839c3a51bd7081871a5094bf..e4bb41cf5d5f6501d3309237993985a5225415b5 100644
(file)
--- 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));