lttng-crash: support recursive traces
[lttng-tools.git] / src / common / runas.c
index 5ab42717a9058b4a5083516aa142a3c1efda226d..471bb22046c3d3bf9f44dbf24c176f089a3e3c2e 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <errno.h>
 #include <limits.h>
 #include <stdio.h>
@@ -34,6 +35,7 @@
 #include <common/utils.h>
 #include <common/compat/mman.h>
 #include <common/compat/clone.h>
+#include <common/compat/getenv.h>
 
 #include "runas.h"
 
@@ -87,7 +89,7 @@ int use_clone(void)
 static
 int use_clone(void)
 {
-       return !getenv("LTTNG_DEBUG_NOCLONE");
+       return !lttng_secure_getenv("LTTNG_DEBUG_NOCLONE");
 }
 #endif
 
This page took 0.024824 seconds and 4 git commands to generate.