From a9b4acea06e3674e2762cc8cde588624c07a3ce5 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Sun, 19 May 2002 01:37:43 +0000 Subject: [PATCH] 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(-) diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 6fc7417ec7fe..dacb9d9384a4 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; }