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 18:55:12 +0000 (13:55 -0500)
commit4282f9a3d51a8db6a6cc602f11d42ee9a5a0c686
treeb0ba40ff85ddff207ac111c2d376beb74e1342ab
parent1c3de747c6d5262ca06a9ff849385fa16751a84d
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.025247 seconds and 4 git commands to generate.