gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r26129 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r26129 - gnunet/src/util
Date: Fri, 15 Feb 2013 11:03:22 +0100

Author: LRN
Date: 2013-02-15 11:03:22 +0100 (Fri, 15 Feb 2013)
New Revision: 26129

Modified:
   gnunet/src/util/os_priority.c
Log:
Try to fix process spawning

Modified: gnunet/src/util/os_priority.c
===================================================================
--- gnunet/src/util/os_priority.c       2013-02-15 09:52:45 UTC (rev 26128)
+++ gnunet/src/util/os_priority.c       2013-02-15 10:03:22 UTC (rev 26129)
@@ -655,6 +655,7 @@
   {
     childpipe_read = NULL;
     childpipe_write = NULL;
+    childpipe_read_fd = -1;
   }
   if (NULL != pipe_stdout)
   {
@@ -730,6 +731,8 @@
     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));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]