UST_REGISTER_TIMEOUT 0 and 1 change (follow poll() timeout)
[lttng-ust.git] / libust / lttng-ust-comm.c
index 8f0cb85b95d2074c1ff2c362e69ce3de1eb7e994..1496408f12356d382567f13fe25ea527fb178a72 100644 (file)
@@ -424,11 +424,11 @@ void __attribute__((constructor)) lttng_ust_comm_init(void)
                        assert(!ret);
                }
                break;
-       case 0: /* wait forever */
+       case -1:/* wait forever */
                ret = sem_wait(&constructor_wait);
                assert(!ret);
                break;
-       case -1:/* no timeout */
+       case 0: /* no timeout */
                break;
        }
        pthread_mutex_unlock(&lttng_ust_comm_mutex);
This page took 0.028472 seconds and 4 git commands to generate.