[sysprof] libsysprof-capture: clear SYSPROF_CONTROL_FD



commit 20f7c271ca46b69a704b0a3f31e18334a8926cd0
Author: Christian Hergert <chergert redhat com>
Date:   Tue Feb 18 13:17:33 2020 -0800

    libsysprof-capture: clear SYSPROF_CONTROL_FD

 src/libsysprof-capture/sysprof-collector.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/libsysprof-capture/sysprof-collector.c b/src/libsysprof-capture/sysprof-collector.c
index 080bcf4..cd2914e 100644
--- a/src/libsysprof-capture/sysprof-collector.c
+++ b/src/libsysprof-capture/sysprof-collector.c
@@ -136,6 +136,8 @@ request_writer (void)
       if (fdstr != NULL)
         peer_fd = atoi (fdstr);
 
+      g_unsetenv ("SYSPROF_CONTROL_FD");
+
       if (peer_fd > 0)
         {
           g_autoptr(GSocket) sock = NULL;


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