Project

General

Profile

Bug #1421 ยป 0001-Fix-consumerd-swap-live-and-monitor-signal-prioritie.patch

Mikael Beckius, 03/05/2025 03:46 PM

View differences:

src/common/consumer/consumer-timer.h
#define LTTNG_CONSUMER_SIG_SWITCH SIGRTMIN + 10
#define LTTNG_CONSUMER_SIG_TEARDOWN SIGRTMIN + 11
#define LTTNG_CONSUMER_SIG_LIVE SIGRTMIN + 12
#define LTTNG_CONSUMER_SIG_MONITOR SIGRTMIN + 13
#define LTTNG_CONSUMER_SIG_MONITOR SIGRTMIN + 12
#define LTTNG_CONSUMER_SIG_LIVE SIGRTMIN + 13
#define LTTNG_CONSUMER_SIG_EXIT SIGRTMIN + 14
#define CLOCKID CLOCK_MONOTONIC
src/common/consumer/consumer.c
/* Destroy streams that might have been left in the stream list. */
clean_channel_stream_list(channel);
if (channel->live_timer_enabled == 1) {
consumer_timer_live_stop(channel);
}
if (channel->monitor_timer_enabled == 1) {
consumer_timer_monitor_stop(channel);
}
if (channel->live_timer_enabled == 1) {
consumer_timer_live_stop(channel);
}
switch (the_consumer_data.type) {
case LTTNG_CONSUMER_KERNEL:
src/common/ust-consumer/ust-consumer.c
}
consumer_metadata_cache_destroy(channel);
}
if (channel->live_timer_enabled == 1) {
consumer_timer_live_stop(channel);
}
if (channel->monitor_timer_enabled == 1) {
consumer_timer_monitor_stop(channel);
}
if (channel->live_timer_enabled == 1) {
consumer_timer_live_stop(channel);
}
goto end_channel_error;
}
    (1-1/1)