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

Function reap_acquire

freebsd/kern/kern_procctl.c:133–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133static int
134reap_acquire(struct thread *td, struct proc *p)
135{
136
137 sx_assert(&proctree_lock, SX_XLOCKED);
138 if (p != curproc)
139 return (EPERM);
140 if ((p->p_treeflag & P_TREE_REAPER) != 0)
141 return (EBUSY);
142 p->p_treeflag |= P_TREE_REAPER;
143 /*
144 * We do not reattach existing children and the whole tree
145 * under them to us, since p->p_reaper already seen them.
146 */
147 return (0);
148}
149
150static int
151reap_release(struct thread *td, struct proc *p)

Callers 1

kern_procctl_singleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected