From: Christian Grothoff Date: Wed, 29 Feb 2012 09:24:24 +0000 (+0000) Subject: -LRN: set control_pipe to NULL if not controlled X-Git-Tag: initial-import-from-subversion-38251~14549 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7aa1787054721f8009d4d195e7dae22831828fb2;p=oweals%2Fgnunet.git -LRN: set control_pipe to NULL if not controlled --- 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, return NULL; } } + else + control_pipe = NULL; if (NULL != childpipename) { 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, return NULL; } } + else + control_pipe = NULL; if (lsocks != NULL && lsocks[0] != INVALID_SOCKET) { lsocks_pipe = GNUNET_DISK_pipe (GNUNET_YES, GNUNET_YES, GNUNET_YES, GNUNET_NO);