From 2ec40c9aacdeb89009c907b64362e5ad5ad79dbc Mon Sep 17 00:00:00 2001 From: "John W. De Boskey" <jwd@FreeBSD.org> Date: Sat, 14 Oct 2000 03:56:01 +0000 Subject: [PATCH] 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. --- sys/kern/sys_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 02929610e829..533ba71f51d2 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -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);