mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-11 09:50:12 +00:00
Make the conditional, which decides what siglist to put a signal on,
more concise and improve the comment. Submitted by: bde
This commit is contained in:
parent
e4bfcbdb32
commit
14b5ae1a98
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117255
@ -1655,15 +1655,12 @@ do_tdsignal(struct thread *td, int sig, sigtarget_t target)
|
||||
prop = sigprop(sig);
|
||||
|
||||
/*
|
||||
* If this thread is blocking this signal then we'll leave it in the
|
||||
* proc so that we can find it in the first thread that unblocks
|
||||
* it-- unless the signal is meant for the thread and not the process.
|
||||
* If the signal is blocked and not destined for this thread, then
|
||||
* assign it to the process so that we can find it later in the first
|
||||
* thread that unblocks it. Otherwise, assign it to this thread now.
|
||||
*/
|
||||
if (target == SIGTARGET_P)
|
||||
siglist = SIGISMEMBER(td->td_sigmask, sig) ?
|
||||
&p->p_siglist : &td->td_siglist;
|
||||
else
|
||||
siglist = &td->td_siglist;
|
||||
siglist = (target != SIGTARGET_TD && SIGISMEMBER(td->td_sigmask, sig)) ?
|
||||
&p->p_siglist : &td->td_siglist;
|
||||
|
||||
/*
|
||||
* If proc is traced, always give parent a chance;
|
||||
|
Loading…
Reference in New Issue
Block a user