-LRN: set control_pipe to NULL if not controlled
authorChristian Grothoff <christian@grothoff.org>
Wed, 29 Feb 2012 09:24:24 +0000 (09:24 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 29 Feb 2012 09:24:24 +0000 (09:24 +0000)
src/util/os_priority.c

index 5a07099582aad7e0bd7b807205469f1deb944c72..4e73f84df60a489e8ed12afb64daa6a7310fd856 100644 (file)
@@ -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);