Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/sys_process.c
Show First 20 Lines • Show All 1,164 Lines • ▼ Show 20 Lines | sendsig: | ||||
/* | /* | ||||
* P_WKILLED is insurance that a PT_KILL/SIGKILL | * P_WKILLED is insurance that a PT_KILL/SIGKILL | ||||
* always works immediately, even if another thread is | * always works immediately, even if another thread is | ||||
* unsuspended first and attempts to handle a | * unsuspended first and attempts to handle a | ||||
* different signal or if the POSIX.1b style signal | * different signal or if the POSIX.1b style signal | ||||
* queue cannot accommodate any new signals. | * queue cannot accommodate any new signals. | ||||
*/ | */ | ||||
if (data == SIGKILL) | if (data == SIGKILL) | ||||
p->p_flag |= P_WKILLED; | proc_wkilled(p); | ||||
/* | /* | ||||
* Unsuspend all threads. To leave a thread | * Unsuspend all threads. To leave a thread | ||||
* suspended, use PT_SUSPEND to suspend it before | * suspended, use PT_SUSPEND to suspend it before | ||||
* continuing the process. | * continuing the process. | ||||
*/ | */ | ||||
PROC_SLOCK(p); | PROC_SLOCK(p); | ||||
p->p_flag &= ~(P_STOPPED_TRACE | P_STOPPED_SIG | P_WAITED); | p->p_flag &= ~(P_STOPPED_TRACE | P_STOPPED_SIG | P_WAITED); | ||||
▲ Show 20 Lines • Show All 305 Lines • Show Last 20 Lines |