X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer-timer.c;h=646d32342cdfa0a7a7552332dd3f5da2c90cc680;hb=847a5916c26ab9cc0dfc9322cccd2c748c54747e;hp=e7343afa63057d33333ea4bc9a4a187c663fed41;hpb=6c1c0768320135c6936c371b09731851b508c023;p=lttng-tools.git diff --git a/src/common/consumer-timer.c b/src/common/consumer-timer.c index e7343afa6..646d32342 100644 --- a/src/common/consumer-timer.c +++ b/src/common/consumer-timer.c @@ -460,7 +460,7 @@ void consumer_timer_live_stop(struct lttng_consumer_channel *channel) * Block the RT signals for the entire process. It must be called from the * consumer main before creating the threads */ -void consumer_signal_init(void) +int consumer_signal_init(void) { int ret; sigset_t mask; @@ -471,7 +471,9 @@ void consumer_signal_init(void) if (ret) { errno = ret; PERROR("pthread_sigmask"); + return -1; } + return 0; } /*