X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=benchmark%2Frun-ust-notify.sh;h=0759398d7c20e67180f17c3507acbb52e78f1f5e;hb=bb3037a945835e64e852fbadc9c0e9f0d8a79b01;hp=660492a54da7fc8ee9d3c1c488cc7de8bd5abef3;hpb=94ebed1a52e46a2bc0d8538287300345387338f6;p=lttng-tools.git diff --git a/benchmark/run-ust-notify.sh b/benchmark/run-ust-notify.sh index 660492a54..0759398d7 100755 --- a/benchmark/run-ust-notify.sh +++ b/benchmark/run-ust-notify.sh @@ -23,20 +23,19 @@ BASEDIR=`dirname $0` echo "Session daemon boot" -`BENCH_UST_NOTIFY=1 $BASEDIR/../ltt-sessiond/$SESSIOND_BIN --daemonize --quiet` -if [ $? -ne 0 ]; then +BENCH_UST_NOTIFY=1 $BASEDIR/../ltt-sessiond/$SESSIOND_BIN -v >/dev/null 2>&1 & + +PID_SESSIOND=$! +if [ -z $PID_SESSIOND ]; then echo -e '\e[1;31mFAILED\e[0m' exit 1 else echo -e "\e[1;32mOK\e[0m" + echo "PID session daemon: $PID_SESSIOND" fi -PID_SESSIOND=`pidof lt-$SESSIOND_BIN` - -echo -e "\nResults will be available shortly in $RESULTS_PATH" -echo "" - kill $PID_SESSIOND -tail -F $RESULTS_PATH --pid $PID_SESSIOND 2>/dev/null + +wait $PID_SESSIOND exit 0