From 7aa1787054721f8009d4d195e7dae22831828fb2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 29 Feb 2012 09:24:24 +0000 Subject: [PATCH] -LRN: set control_pipe to NULL if not controlled --- src/util/os_priority.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.25.1