X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=benchmark%2Frun-boot-time.sh;h=c17a4fd26165c60556ff08ff210a9a61d8d8df5e;hb=5400b0f9cf4514a435e6ebdd3e44c4f6d640428d;hp=dabb707b9aacaa0020eb9152b5f7c415f93329bf;hpb=aebe93ee270d76a16e324c24d91b76d8ad22dd4b;p=lttng-tools.git diff --git a/benchmark/run-boot-time.sh b/benchmark/run-boot-time.sh index dabb707b9..c17a4fd26 100755 --- a/benchmark/run-boot-time.sh +++ b/benchmark/run-boot-time.sh @@ -23,7 +23,7 @@ BASEDIR=`dirname $0` echo "Session daemon boot process benchmark" -$BASEDIR/../ltt-sessiond/$SESSIOND_BIN --daemonize --quiet +`BENCH_BOOT_PROCESS=1 $BASEDIR/../ltt-sessiond/$SESSIOND_BIN --daemonize --quiet` if [ $? -ne 0 ]; then echo -e '\e[1;31mFAILED\e[0m' exit 1 @@ -43,9 +43,7 @@ sleep 1 kill $PID_SESSIOND -echo -e "\nResults will be available shortly in $RESULTS_PATH" -echo "" - -tail -F $RESULTS_PATH --pid $PID_SESSIOND 2>/dev/null +# Trick to wait for a PID which is not a child +tail --pid=$PID_SESSIOND --quiet -F $RESULTS_PATH > /dev/null 2>&1 exit 0