MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cursig

Function cursig

freebsd/kern/kern_sig.c:601–608  ·  view source on GitHub ↗

* 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(). */

Source from the content-addressed store, hash-verified

599 * action, the process stops in issignal().
600 */
601int
602cursig(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

Callers 5

issigFunction · 0.85
kern_sigtimedwaitFunction · 0.85
kern_sigsuspendFunction · 0.85
sig_ast_needsigchkFunction · 0.85
astFunction · 0.85

Calls 2

mtx_assertFunction · 0.85
issignalFunction · 0.85

Tested by

no test coverage detected