state_file=$1
ust_event_generator_suspended=0
trap ust_event_generator_toogle_state SIGUSR1
- trap "exit" SIGTERM SIGINT
+
while (true); do
if [[ $ust_event_generator_suspended -eq "1" ]]; then
touch $state_file
if [[ -f $state_file ]]; then
rm -rf $state_file 2> /dev/null
fi
- taskset -c 0 $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT > /dev/null 2>&1
+ taskset -c 0 $TESTAPP_BIN -i $NR_ITER -w $NR_USEC_WAIT > /dev/null 2>&1
fi
done
}