From df442a141af71cd983f04a5d4d59002c82b0dacd Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 25 Nov 2013 11:33:59 -0500 Subject: [PATCH] Tests: remove useless sleep when spawning sessiond The new daemonize scheme returns to the parent only when the session daemon is ready to operate thus the sleep that was used to wait for the session deamon to bootstrap is no longer needed. Signed-off-by: David Goulet --- tests/utils/utils.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index a09089afd..9e2c12d0b 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -156,11 +156,9 @@ function start_lttng_sessiond() DIR=$(readlink -f $TESTDIR) if [ -z $(pidof lt-$SESSIOND_BIN) ]; then - $DIR/../src/bin/lttng-sessiond/$SESSIOND_BIN --daemonize --quiet --consumerd32-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" + $DIR/../src/bin/lttng-sessiond/$SESSIOND_BIN --daemonize --consumerd32-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" #$DIR/../src/bin/lttng-sessiond/$SESSIOND_BIN --consumerd32-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --verbose-consumer >>/tmp/sessiond.log 2>&1 & status=$? - # Wait for sessiond to bootstrap - sleep 2 ok $status "Start session daemon" fi } -- 2.34.1