enterpgrp
enterpgrp(p, p->p_pid, 1);
error = enterpgrp(targp, pgid, 0);
int enterpgrp (struct proc *p, pid_t pgid, int mksess);