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

Function reap_release

freebsd/kern/kern_procctl.c:150–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150static int
151reap_release(struct thread *td, struct proc *p)
152{
153
154 sx_assert(&proctree_lock, SX_XLOCKED);
155 if (p != curproc)
156 return (EPERM);
157 if (p == initproc)
158 return (EINVAL);
159 if ((p->p_treeflag & P_TREE_REAPER) == 0)
160 return (EINVAL);
161 reaper_abandon_children(p, false);
162 return (0);
163}
164
165static int
166reap_status(struct thread *td, struct proc *p,

Callers 1

kern_procctl_singleFunction · 0.85

Calls 1

reaper_abandon_childrenFunction · 0.85

Tested by

no test coverage detected