projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: ust-app: protect app socket protocol with lock
[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 6310db7e601654f5d5f3bc0c1bae41cf866c532a..b5cfe307df0f09e1a1eec61de85795bee1de29ea 100644
(file)
--- a/
src/bin/lttng-sessiond/main.c
+++ b/
src/bin/lttng-sessiond/main.c
@@
-1989,7
+1989,7
@@
static void *thread_dispatch_ust_registration(void *data)
* Don't care about return value. Let the manage apps threads
* handle app unregistration upon socket close.
*/
* Don't care about return value. Let the manage apps threads
* handle app unregistration upon socket close.
*/
- (void) ust_app_register_done(app
->sock
);
+ (void) ust_app_register_done(app);
/*
* Even if the application socket has been closed, send the app
/*
* Even if the application socket has been closed, send the app
@@
-6058,6
+6058,9
@@
exit_options:
sessiond_cleanup_options();
exit_set_signal_handler:
sessiond_cleanup_options();
exit_set_signal_handler:
+ /* Ensure all prior call_rcu are done. */
+ rcu_barrier();
+
if (!retval) {
exit(EXIT_SUCCESS);
} else {
if (!retval) {
exit(EXIT_SUCCESS);
} else {
This page took
0.025701 seconds
and
5
git commands to generate.