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.9.5~11 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6f7cc0bea75495e901950c402abbde051a7aa869;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 b0a434284..1ba648c5f 100644 --- a/src/common/consumer/consumer-timer.c +++ b/src/common/consumer/consumer-timer.c @@ -381,7 +381,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();