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