Fix: clean-up sessiond condig structure on initialization error
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index 88877c700437d54713020f4dc06c66f543fe4d67..f7b3c7c84d1add69c1114e89f81ac4911490b33d 100644 (file)
@@ -547,15 +547,9 @@ static void sessiond_cleanup(void)
         */
        utils_close_pipe(thread_quit_pipe);
 
-       /*
-        * If config.pid_file_path.value is undefined, the default file will be
-        * wiped when removing the rundir.
-        */
-       if (config.pid_file_path.value) {
-               ret = remove(config.pid_file_path.value);
-               if (ret < 0) {
-                       PERROR("remove pidfile %s", config.pid_file_path.value);
-               }
+       ret = remove(config.pid_file_path.value);
+       if (ret < 0) {
+               PERROR("remove pidfile %s", config.pid_file_path.value);
        }
 
        DBG("Removing sessiond and consumerd content of directory %s",
This page took 0.023819 seconds and 4 git commands to generate.