Use the correct field when reading the PID out of a struct proc.
MFC after: 1 week
This commit is contained in:
parent
ea2e7ddab1
commit
7c39b67011
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user