diff options
author | jwd <jwd@FreeBSD.org> | 2000-10-14 03:56:01 +0000 |
---|---|---|
committer | jwd <jwd@FreeBSD.org> | 2000-10-14 03:56:01 +0000 |
commit | 9b74eb428caea67152c35bcb81ceb4870ecb2534 (patch) | |
tree | ff66dc5b27f6f3ec2c412d3126e30be084432d39 /sys/kern/sys_process.c | |
parent | 0458054c4e405cc6f262b0fb171dc3d049bc7513 (diff) | |
download | FreeBSD-src-9b74eb428caea67152c35bcb81ceb4870ecb2534.zip FreeBSD-src-9b74eb428caea67152c35bcb81ceb4870ecb2534.tar.gz |
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.
Diffstat (limited to 'sys/kern/sys_process.c')
-rw-r--r-- | sys/kern/sys_process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 0292961..533ba71f 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); |