projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: handle_notification_thread_command: handle partial read
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
main.c
diff --git
a/src/bin/lttng-sessiond/main.c
b/src/bin/lttng-sessiond/main.c
index 7f66a7271222d16b11dbb501ddf7dd5c0e291fb2..c45280d11583f0d8f1f44b125546b24b7d5e3232 100644
(file)
--- a/
src/bin/lttng-sessiond/main.c
+++ b/
src/bin/lttng-sessiond/main.c
@@
-1626,12
+1626,6
@@
int main(int argc, char **argv)
goto stop_threads;
}
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();
/* Get parent pid if -S, --sig-parent is specified. */
if (config.sig_parent) {
ppid = getppid();
@@
-1741,6
+1735,12
@@
int main(int argc, char **argv)
goto stop_threads;
}
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;
if (!launch_ust_dispatch_thread(&ust_cmd_queue, apps_cmd_pipe[1],
apps_cmd_notify_pipe[1])) {
retval = -1;
This page took
0.027229 seconds
and
4
git commands to generate.