mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
(Philippe Waroquiers, philippe.waroquiers@skynet.be) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11727
12 lines
295 B
Bash
Executable File
12 lines
295 B
Bash
Executable File
#! /bin/sh
|
|
|
|
# simulate control_c by sending SIGUSR1 to the vgdb using prefix $1 in $2 seconds
|
|
VGDBPID=`./vgdb -D $1 2>&1 | awk '/vgdb pid/ {print $3}'`
|
|
if [ "$VGDBPID" = "" ]
|
|
then
|
|
echo "simulate_control_c could not determine the vgdb pid with " $1
|
|
exit 1
|
|
fi
|
|
(sleep $2; kill -10 $VGDBPID) &
|
|
|