Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_sig.c
Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | SYSCTL_BOOL(_kern, OID_AUTO, sigfastblock_fetch_always, CTLFLAG_RWTUN, | ||||
"blocking semantic"); | "blocking semantic"); | ||||
static bool kern_sig_discard_ign = true; | static bool kern_sig_discard_ign = true; | ||||
SYSCTL_BOOL(_kern, OID_AUTO, sig_discard_ign, CTLFLAG_RWTUN, | SYSCTL_BOOL(_kern, OID_AUTO, sig_discard_ign, CTLFLAG_RWTUN, | ||||
&kern_sig_discard_ign, 0, | &kern_sig_discard_ign, 0, | ||||
"Discard ignored signals on delivery, otherwise queue them to " | "Discard ignored signals on delivery, otherwise queue them to " | ||||
"the target queue"); | "the target queue"); | ||||
SYSINIT(signal, SI_SUB_P1003_1B, SI_ORDER_FIRST+3, sigqueue_start, NULL); | SYSINIT(signal, SI_SUB_P1003_1B, SI_ORDER_FIRST+3, sigqueue_start); | ||||
/* | /* | ||||
* Policy -- Can ucred cr1 send SIGIO to process cr2? | * Policy -- Can ucred cr1 send SIGIO to process cr2? | ||||
* Should use cr_cansignal() once cr_cansignal() allows SIGIO and SIGURG | * Should use cr_cansignal() once cr_cansignal() allows SIGIO and SIGURG | ||||
* in the right situations. | * in the right situations. | ||||
*/ | */ | ||||
#define CANSIGIO(cr1, cr2) \ | #define CANSIGIO(cr1, cr2) \ | ||||
((cr1)->cr_uid == 0 || \ | ((cr1)->cr_uid == 0 || \ | ||||
▲ Show 20 Lines • Show All 4,399 Lines • Show Last 20 Lines |