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

Function reaper_clear

freebsd/kern/kern_exit.c:148–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148static void
149reaper_clear(struct proc *p)
150{
151 struct proc *p1;
152 bool clear;
153
154 sx_assert(&proctree_lock, SX_LOCKED);
155 LIST_REMOVE(p, p_reapsibling);
156 if (p->p_reapsubtree == 1)
157 return;
158 clear = true;
159 LIST_FOREACH(p1, &p->p_reaper->p_reaplist, p_reapsibling) {
160 if (p1->p_reapsubtree == p->p_reapsubtree) {
161 clear = false;
162 break;
163 }
164 }
165 if (clear)
166 proc_id_clear(PROC_ID_REAP, p->p_reapsubtree);
167}
168
169void
170proc_clear_orphan(struct proc *p)

Callers 1

proc_reapFunction · 0.85

Calls 1

proc_id_clearFunction · 0.85

Tested by

no test coverage detected