Fix: various compat poll/epoll issues
[lttng-tools.git] / src / bin / lttng-relayd / health-relayd.c
index 8a5cbdfcb550f86a2010586e6eed924d19232861..af375e26d4b049d5d3d2f0be75c6e302f7a95c10 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <fcntl.h>
 #include <getopt.h>
 #include <grp.h>
@@ -160,6 +161,10 @@ int setup_health_path(void)
 
        if (is_root) {
                rundir = strdup(DEFAULT_LTTNG_RUNDIR);
+               if (!rundir) {
+                       ret = -ENOMEM;
+                       goto end;
+               }
        } else {
                /*
                 * Create rundir from home path. This will create something like
This page took 0.024119 seconds and 5 git commands to generate.