Comment why we cannot rmdir the lttng and relayd rundir
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index a790844a1a484e3745305f91999ca98da8d390e3..54b47567dea05cbc2acf0e7796a499134d2cb987 100644 (file)
@@ -499,6 +499,12 @@ static void cleanup(void)
        DBG("Removing directory %s", path);
        (void) rmdir(path);
 
+       /*
+        * We do NOT rmdir rundir because there are other processes
+        * using it, for instance lttng-relayd, which can start in
+        * parallel with this teardown.
+        */
+
        free(rundir);
 
        DBG("Cleaning up all sessions");
This page took 0.025537 seconds and 5 git commands to generate.