aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-02-29 09:24:24 +0000
committerChristian Grothoff <christian@grothoff.org>2012-02-29 09:24:24 +0000
commit7aa1787054721f8009d4d195e7dae22831828fb2 (patch)
tree96072b767e314ee335a2d6fe1d20a8b36049c20c /src
parenta45215154b2d27ac57d042ab081ee1e54071951e (diff)
downloadgnunet-7aa1787054721f8009d4d195e7dae22831828fb2.tar.gz
gnunet-7aa1787054721f8009d4d195e7dae22831828fb2.zip
-LRN: set control_pipe to NULL if not controlled
Diffstat (limited to 'src')
-rw-r--r--src/util/os_priority.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/os_priority.c b/src/util/os_priority.c
index 5a0709958..4e73f84df 100644
--- a/src/util/os_priority.c
+++ b/src/util/os_priority.c
@@ -972,6 +972,8 @@ GNUNET_OS_start_process_vap (int pipe_control,
972 return NULL; 972 return NULL;
973 } 973 }
974 } 974 }
975 else
976 control_pipe = NULL;
975 if (NULL != childpipename) 977 if (NULL != childpipename)
976 { 978 {
977 LOG (GNUNET_ERROR_TYPE_DEBUG, "Opened the parent end of the pipe `%s'\n", 979 LOG (GNUNET_ERROR_TYPE_DEBUG, "Opened the parent end of the pipe `%s'\n",
@@ -1345,6 +1347,8 @@ GNUNET_OS_start_process_v (int pipe_control,
1345 return NULL; 1347 return NULL;
1346 } 1348 }
1347 } 1349 }
1350 else
1351 control_pipe = NULL;
1348 if (lsocks != NULL && lsocks[0] != INVALID_SOCKET) 1352 if (lsocks != NULL && lsocks[0] != INVALID_SOCKET)
1349 { 1353 {
1350 lsocks_pipe = GNUNET_DISK_pipe (GNUNET_YES, GNUNET_YES, GNUNET_YES, GNUNET_NO); 1354 lsocks_pipe = GNUNET_DISK_pipe (GNUNET_YES, GNUNET_YES, GNUNET_YES, GNUNET_NO);