diff options
author | marcel <marcel@FreeBSD.org> | 2002-05-19 01:37:43 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2002-05-19 01:37:43 +0000 |
commit | 1f1f792674c9b3099aaa76909c7265fd5b213123 (patch) | |
tree | f24bee6321cefe222a09b0980b9b4e584ad3858d /sys/kern | |
parent | 42058b50b4939fa98d2c6ac9fa6a52990423305b (diff) | |
download | FreeBSD-src-1f1f792674c9b3099aaa76909c7265fd5b213123.zip FreeBSD-src-1f1f792674c9b3099aaa76909c7265fd5b213123.tar.gz |
All signals can be sent to the inferior process when it's restarted,
not just the legacy ones.
PR: 33299
Submitted by: Alexander N. Kabaev <ak03@gte.com>
Diffstat (limited to 'sys/kern')
-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 6fc7417..dacb9d9 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -516,7 +516,7 @@ ptrace(struct thread *td, struct ptrace_args *uap) case PT_CONTINUE: case PT_DETACH: /* XXX uap->data is used even in the PT_STEP case. */ - if ((uap->req != PT_STEP) && ((unsigned)uap->data >= NSIG)) { + if (uap->req != PT_STEP && (unsigned)uap->data > _SIG_MAXSIG) { error = EINVAL; goto fail; } |