Fix: don't sleep(1) on the consumer ready flag
[lttng-tools.git] / src / bin / lttng-consumerd / lttng-consumerd.c
index d9ec0f33efc4cbb0453f91ba479db9e550bd8ed8..e226ebc69e973eb34faa74d7a1be56ab7c3ab090 100644 (file)
@@ -426,7 +426,7 @@ int main(int argc, char **argv)
         * sessiond thread reply to the sessiond that we are ready.
         */
        while (uatomic_read(&lttng_consumer_ready)) {
-               sleep(1);
+               usleep(100000);
        }
        cmm_smp_mb();   /* Read ready before following operations */
 
This page took 0.024372 seconds and 5 git commands to generate.