gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r18426 - gnunet/src/util
Date: Fri, 2 Dec 2011 08:38:24 +0100

Author: grothoff
Date: 2011-12-02 08:38:24 +0100 (Fri, 02 Dec 2011)
New Revision: 18426

Modified:
   gnunet/src/util/os_priority.c
Log:
-LRN: unset control pipe after use, add missing #define

Modified: gnunet/src/util/os_priority.c
===================================================================
--- gnunet/src/util/os_priority.c       2011-12-02 07:37:27 UTC (rev 18425)
+++ gnunet/src/util/os_priority.c       2011-12-02 07:38:24 UTC (rev 18426)
@@ -38,6 +38,8 @@
 
 #define GNUNET_OS_CONTROL_PIPE "GNUNET_OS_CONTROL_PIPE"
 
+#define DEBUG_OS GNUNET_EXTRA_LOGGING
+
 struct GNUNET_OS_Process
 {
   pid_t pid;
@@ -113,6 +115,7 @@
   {
     LOG (GNUNET_ERROR_TYPE_INFO, _("Not installing a handler because 
$%s=%s\n"),
          GNUNET_OS_CONTROL_PIPE, env_buf);
+    putenv ("GNUNET_OS_CONTROL_PIPE=");
     return;
   }
   control_pipe =
@@ -122,6 +125,7 @@
   if (control_pipe == NULL)
   {
     LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_WARNING, "open", env_buf);
+    putenv ("GNUNET_OS_CONTROL_PIPE=");
     return;
   }
 #if DEBUG_OS
@@ -130,6 +134,7 @@
 #endif
   GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, control_pipe,
                                   &parent_control_handler, control_pipe);
+  putenv ("GNUNET_OS_CONTROL_PIPE=");
 }
 
 




reply via email to

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