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>
This commit is contained in:
Marcel Moolenaar 2002-05-19 01:37:43 +00:00
parent c444f61706
commit a9b4acea06

View File

@ -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;
}