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:
parent
c444f61706
commit
a9b4acea06
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user