projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: create_kernel_session asserts on failure
[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 3482a7e89509b697743fd62d57baa7c7bbc26c90..9d82b8313bfc59701619378a22cb69550bfc5eb4 100644
(file)
--- a/
src/bin/lttng-sessiond/notification-thread-events.c
+++ b/
src/bin/lttng-sessiond/notification-thread-events.c
@@
-1931,6
+1931,7
@@
int bind_trigger_to_matching_channels(const struct lttng_trigger *trigger,
channels_ht_node) {
struct lttng_trigger_list_element *trigger_list_element;
struct lttng_channel_trigger_list *trigger_list;
channels_ht_node) {
struct lttng_trigger_list_element *trigger_list_element;
struct lttng_channel_trigger_list *trigger_list;
+ struct cds_lfht_iter lookup_iter;
if (!trigger_applies_to_channel(trigger, channel)) {
continue;
if (!trigger_applies_to_channel(trigger, channel)) {
continue;
@@
-1940,8
+1941,8
@@
int bind_trigger_to_matching_channels(const struct lttng_trigger *trigger,
hash_channel_key(&channel->key),
match_channel_trigger_list,
&channel->key,
hash_channel_key(&channel->key),
match_channel_trigger_list,
&channel->key,
- &iter);
- node = cds_lfht_iter_get_node(&iter);
+ &
lookup_
iter);
+ node = cds_lfht_iter_get_node(&
lookup_
iter);
assert(node);
trigger_list = caa_container_of(node,
struct lttng_channel_trigger_list,
assert(node);
trigger_list = caa_container_of(node,
struct lttng_channel_trigger_list,
@@
-2277,9
+2278,9
@@
int handle_notification_thread_command(
struct notification_thread_command *cmd;
/* Read the event pipe to put it back into a quiescent state. */
struct notification_thread_command *cmd;
/* Read the event pipe to put it back into a quiescent state. */
- ret = read(lttng_pipe_get_readfd(handle->cmd_queue.event_pipe), &counter,
+ ret =
lttng_
read(lttng_pipe_get_readfd(handle->cmd_queue.event_pipe), &counter,
sizeof(counter));
sizeof(counter));
- if (ret
== -1
) {
+ if (ret
!= sizeof(counter)
) {
goto error;
}
goto error;
}
This page took
0.024832 seconds
and
4
git commands to generate.