From: Jérémie Galarneau Date: Thu, 18 May 2017 20:15:20 +0000 (-0400) Subject: Fix: consumer_timer_signal_thread_qs waits on LTTNG_CONSUMER_SIG_SWITCH X-Git-Tag: v2.10.0-rc2~54 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=cecd89cf0b7b432df305da8d5db4ee88f61c9de0;p=lttng-tools.git Fix: consumer_timer_signal_thread_qs waits on LTTNG_CONSUMER_SIG_SWITCH Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/consumer/consumer-timer.c b/src/common/consumer/consumer-timer.c index 60ed94083..0adc5724e 100644 --- a/src/common/consumer/consumer-timer.c +++ b/src/common/consumer/consumer-timer.c @@ -394,7 +394,7 @@ void consumer_timer_signal_thread_qs(unsigned int signr) if (ret == -1) { PERROR("sigpending"); } - if (!sigismember(&pending_set, LTTNG_CONSUMER_SIG_SWITCH)) { + if (!sigismember(&pending_set, signr)) { break; } caa_cpu_relax();