Remove the signal value check from the PT_STEP codepath. It

can cause an bogus failure.

Reviewed by:    Sean Eric Fagan <sef@kithrup.com>
                and no other response to the review request.
This commit is contained in:
John W. De Boskey 2000-10-14 03:56:01 +00:00
parent 0b0c10b48d
commit 2ec40c9aac

View File

@ -322,7 +322,7 @@ ptrace(curp, uap)
case PT_STEP:
case PT_CONTINUE:
case PT_DETACH:
if ((unsigned)uap->data >= NSIG)
if ((uap->req != PT_STEP) && ((unsigned)uap->data >= NSIG))
return EINVAL;
PHOLD(p);