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

Function sigdflt

freebsd/kern/kern_sig.c:966–976  ·  view source on GitHub ↗

* Reset specified signal to the default disposition. */

Source from the content-addressed store, hash-verified

964 * Reset specified signal to the default disposition.
965 */
966static void
967sigdflt(struct sigacts *ps, int sig)
968{
969
970 mtx_assert(&ps->ps_mtx, MA_OWNED);
971 SIGDELSET(ps->ps_sigcatch, sig);
972 if ((sigprop(sig) & SIGPROP_IGNORE) != 0 && sig != SIGCONT)
973 SIGADDSET(ps->ps_sigignore, sig);
974 ps->ps_sigact[_SIG_IDX(sig)] = SIG_DFL;
975 SIGDELSET(ps->ps_siginfo, sig);
976}
977
978/*
979 * Reset signals for an exec of the specified process.

Callers 3

execsigsFunction · 0.85
postsig_doneFunction · 0.85
sig_drop_caughtFunction · 0.85

Calls 2

mtx_assertFunction · 0.85
sigpropFunction · 0.85

Tested by

no test coverage detected