Make sure only remove one signal by debugger.
This commit is contained in:
parent
e4638e53d8
commit
413cf3bbe1
@ -2503,12 +2503,13 @@ issignal(td)
|
||||
SIGADDSET(td->td_sigmask, sig);
|
||||
|
||||
if (sig != newsig) {
|
||||
ksiginfo_t ksi;
|
||||
/*
|
||||
* clear old signal.
|
||||
* XXX shrug off debugger, it causes siginfo to
|
||||
* be thrown away.
|
||||
*/
|
||||
sigqueue_delete(&td->td_sigqueue, sig);
|
||||
sigqueue_get(&td->td_sigqueue, sig, &ksi);
|
||||
|
||||
/*
|
||||
* If parent wants us to take the signal,
|
||||
|
Loading…
Reference in New Issue
Block a user