Fix: Don't wait during registration if clock_gettime() fails
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 23 Apr 2015 17:07:38 +0000 (13:07 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 23 Apr 2015 17:14:43 +0000 (13:14 -0400)
commit28515902a0c1d721e1a92c4a25f20574e0e4f24a
treee65ecc316a804183471e030ba4a119e228ecb166
parent4bc1ccd721114691c6f0dbd65335b3c43c9f895f
Fix: Don't wait during registration if clock_gettime() fails

get_constructor_timeout() currently returns -1 which, according to
the lttng-ust(3) man page and lttng_ust_init() implementation,
"waits forever".

This changes the behavior to match what is expressed in the comments.

Comments in get_constructor_timeout() and get_timeout() are also
modified to match the following convention:

-1: wait forever
0: don't wait
1: wait for "constructor_delay_ms"

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-ust-comm.c
This page took 0.0247 seconds and 4 git commands to generate.