blob: cea1e5963575ae498be6a452f698f89ee3e346e2 [file] [log] [blame]
sewardj3b290482011-05-06 21:02:55 +00001#! /bin/sh
2
3# simulate control_c by sending SIGUSR1 to the vgdb using prefix $1 in $2 seconds
4VGDBPID=`./vgdb -D $1 2>&1 | awk '/vgdb pid/ {print $3}'`
5if [ "$VGDBPID" = "" ]
6then
7 echo "simulate_control_c could not determine the vgdb pid with " $1
8 exit 1
9fi
10(sleep $2; kill -10 $VGDBPID) &
11