* If we got the child via a ptrace 'attach', we need to give it back
* to the old parent.
*/
if (p->p_oppid != 0) {
t = proc_realparent(p);
if (p->p_oppid != 0 && t != q) {
PROC_LOCK(t);
PROC_LOCK(p);
CTR2(KTR_PTRACE,