Fix: report error if consumer can't be spawned
authorDavid Goulet <dgoulet@efficios.com>
Tue, 25 Feb 2014 18:55:12 +0000 (13:55 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 25 Feb 2014 19:00:14 +0000 (14:00 -0500)
commit6565552af15b7e9b5ea75f116c125ab4113c1e35
tree1f4adc28aa571032a9e69b85365057be27bfde5c
parentc523f0063e80a3ac3bc9eb47ee588c5b47a09a6e
Fix: report error if consumer can't be spawned

On error of the UST consumer execl(), we now exit the forked process
like the kernel does.

Furthermore, fix an error handling value when timing out when waiting
for the consumer to bootstrap thus returning an error to the client and
not continuing with the command thinking that the consumer was actually
spawned.

So, the expected behavior is to wait for the pthread condition and if a
timeout is seen, the client is informed thus making the client command
hang for the default timeout value of 30 seconds.

Fixes #702

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/main.c
This page took 0.025561 seconds and 4 git commands to generate.