<dec f='src/src/sys/sys/proc.h' l='495' type='void fixjobc(struct proc * , struct pgrp * , int )'/>
<use f='src/src/sys/kern/kern_exit.c' l='416' u='c' c='exit1'/>
<use f='src/src/sys/kern/kern_proc.c' l='975' u='c' c='proc_enterpgrp'/>
<use f='src/src/sys/kern/kern_proc.c' l='976' u='c' c='proc_enterpgrp'/>
<def f='src/src/sys/kern/kern_proc.c' l='1127' ll='1165' type='void fixjobc(struct proc * p, struct pgrp * pgrp, int entering)'/>
<doc f='src/src/sys/kern/kern_proc.c' l='1115'>/*
 * Adjust pgrp jobc counters when specified process changes process group.
 * We count the number of processes in each process group that &quot;qualify&quot;
 * the group for terminal job control (those with a parent in a different
 * process group of the same session).  If that count reaches zero, the
 * process group becomes orphaned.  Check both the specified process&apos;
 * process group and that of its children.
 * entering == 0 =&gt; p is leaving specified group.
 * entering == 1 =&gt; p is entering specified group.
 *
 * Call with proc_lock held.
 */</doc>
