Use the correct field when reading the PID out of a struct proc.

MFC after:	1 week
This commit is contained in:
Mark Johnston 2015-01-30 04:14:19 +00:00
parent ea2e7ddab1
commit 7c39b67011
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277910
4 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ pid$1:a.out:waiting:entry
proc:::create
/pid == $1/
{
child = args[0]->pr_pid;
child = args[0]->p_pid;
trace(pid);
}

View File

@ -44,7 +44,7 @@ pid$1:a.out:waiting:entry
proc:::create
/pid == $1/
{
child = args[0]->pr_pid;
child = args[0]->p_pid;
}
pid$1:a.out:go:

View File

@ -36,7 +36,7 @@ script()
{
$dtrace -s /dev/stdin <<EOF
proc:::signal-discard
/args[1]->pr_pid == $child &&
/args[1]->p_pid == $child &&
args[1]->pr_psargs == "$longsleep" && args[2] == SIGHUP/
{
exit(0);

View File

@ -42,7 +42,7 @@ script()
/*
* This is guaranteed to not race with signal-handle.
*/
target = args[1]->pr_pid;
target = args[1]->p_pid;
}
proc:::signal-handle