goto stop_threads;
}
- /* Set credentials to socket */
- if (is_root && set_permissions(config.rundir.value)) {
- retval = -1;
- goto stop_threads;
- }
-
/* Get parent pid if -S, --sig-parent is specified. */
if (config.sig_parent) {
ppid = getppid();
goto stop_threads;
}
+ /* Set credentials of the client socket and rundir */
+ if (is_root && set_permissions(config.rundir.value)) {
+ retval = -1;
+ goto stop_threads;
+ }
+
if (!launch_ust_dispatch_thread(&ust_cmd_queue, apps_cmd_pipe[1],
apps_cmd_notify_pipe[1])) {
retval = -1;