3 # simulate control_c by sending SIGUSR1 to the vgdb using prefix $1 in $2 seconds
4 # If there are some args after $2, the rest of these args is a command and its arg
5 # which is run every second. When this command is successful, then the sleep and
6 # the control c simul is done.
12 if [ "$GUARDCMD" = "" ]
16 VGDBPID
=`./vgdb -D $PREFIX 2>&1 | awk '/vgdb pid/ {print $3}'`
17 if [ "$VGDBPID" = "" ]
19 echo "simulate_control_c could not determine the vgdb pid with " $PREFIX
22 (while ! $GUARDCMD >> garbage.filtered.out
2>&1
27 kill -s USR1
$VGDBPID) &