* Determine signal that should be delivered to thread td, the current * thread, 0 if none. If there is a pending stop signal with default * action, the process stops in issignal(). */
| 599 | * action, the process stops in issignal(). |
| 600 | */ |
| 601 | int |
| 602 | cursig(struct thread *td) |
| 603 | { |
| 604 | PROC_LOCK_ASSERT(td->td_proc, MA_OWNED); |
| 605 | mtx_assert(&td->td_proc->p_sigacts->ps_mtx, MA_OWNED); |
| 606 | THREAD_LOCK_ASSERT(td, MA_NOTOWNED); |
| 607 | return (SIGPENDING(td) ? issignal(td) : 0); |
| 608 | } |
| 609 | |
| 610 | /* |
| 611 | * Arrange for ast() to handle unmasked pending signals on return to user |
no test coverage detected