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
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