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:15:04 +0000 (13:15 -0400)
commit380691fa3812bc1637271217d6b69402cc8662d0
treeca09c68473d41dbb1d853a68f7d9e08837a4dbb9
parentc8fcf68ac7d8e785ebcfd36d9f8355bbdce1f8c7
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.026518 seconds and 4 git commands to generate.