X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer-timer.c;h=7ece0f6a54a37eb97084e8973cecc63c59b8b8e3;hp=b02ccbb115a9cdd6337f5214bcd49b8d268aed79;hb=9ce5646a7ef9b8d7936c46649a21ee546fadd538;hpb=1fc79fb475198741b09a13b5397f018dff4b1aec diff --git a/src/common/consumer-timer.c b/src/common/consumer-timer.c index b02ccbb11..7ece0f6a5 100644 --- a/src/common/consumer-timer.c +++ b/src/common/consumer-timer.c @@ -472,12 +472,18 @@ void *consumer_timer_thread(void *data) health_register(health_consumerd, HEALTH_CONSUMERD_TYPE_METADATA_TIMER); + health_code_update(); + /* Only self thread will receive signal mask. */ setmask(&mask); CMM_STORE_SHARED(timer_signal.tid, pthread_self()); while (1) { + health_code_update(); + + health_poll_entry(); signr = sigwaitinfo(&mask, &info); + health_poll_exit(); if (signr == -1) { if (errno != EINTR) { PERROR("sigwaitinfo");