projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sessiond: notification: add support for async commands
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
notification-thread-events.c
diff --git
a/src/bin/lttng-sessiond/notification-thread-events.c
b/src/bin/lttng-sessiond/notification-thread-events.c
index 6e507642a224be3affae1540bd762bc2a138849a..3f8cb4804ddd0800061f634afb3d6e92022e8103 100644
(file)
--- a/
src/bin/lttng-sessiond/notification-thread-events.c
+++ b/
src/bin/lttng-sessiond/notification-thread-events.c
@@
-2475,7
+2475,12
@@
int handle_notification_thread_command(
}
end:
cds_list_del(&cmd->cmd_list_node);
}
end:
cds_list_del(&cmd->cmd_list_node);
- lttng_waiter_wake_up(&cmd->reply_waiter);
+ if (cmd->is_async) {
+ free(cmd);
+ cmd = NULL;
+ } else {
+ lttng_waiter_wake_up(&cmd->reply_waiter);
+ }
pthread_mutex_unlock(&handle->cmd_queue.lock);
return ret;
error_unlock:
pthread_mutex_unlock(&handle->cmd_queue.lock);
return ret;
error_unlock:
This page took
0.024208 seconds
and
4
git commands to generate.