From db5a8882ffe6173e33882ff5fde79c5261f9d0a8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 2 Dec 2011 07:38:24 +0000 Subject: [PATCH] -LRN: unset control pipe after use, add missing #define --- src/util/os_priority.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/os_priority.c b/src/util/os_priority.c index 3b3b022b9..9ffa190fa 100644 --- a/src/util/os_priority.c +++ b/src/util/os_priority.c @@ -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 @@ GNUNET_OS_install_parent_control_handler (void *cls, { 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 @@ GNUNET_OS_install_parent_control_handler (void *cls, 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 @@ GNUNET_OS_install_parent_control_handler (void *cls, #endif GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, control_pipe, &parent_control_handler, control_pipe); + putenv ("GNUNET_OS_CONTROL_PIPE="); } -- 2.25.1