diff --git a/src/libsysprof-capture/sysprof-collector.c b/src/libsysprof-capture/sysprof-collector.c index 080bcf4d..cd2914e2 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;