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:00 +0000 (13:15 -0400)
commit6612d11aed331c0141a040dfd0442534406a9b7e
treea5db0cc75cdbb0c9630b4b8794da65d0d9b08fa3
parent620669f7a30827e5b5c51edc78609f54f351b929
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.026023 seconds and 4 git commands to generate.