From 1f1f792674c9b3099aaa76909c7265fd5b213123 Mon Sep 17 00:00:00 2001 From: marcel Date: Sun, 19 May 2002 01:37:43 +0000 Subject: 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 --- sys/kern/sys_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/sys_process.c') 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; } -- cgit v1.1