// IsOrphan returns true if this process group is an orphan.
IsOrphan returns true if this process group is an orphan.
// IsOrphan returns true if this process group is an orphan .
func (pg *ProcessGroup) IsOrphan() bool {
	pg.originator.TaskSet().mu.RLock()
	defer pg.originator.TaskSet().mu.RUnlock()
	return pg.ancestors == 0
}
func ( pg * ProcessGroup ) IsOrphan ( ) bool { pg . originator . TaskSet ( ) . mu . RLock ( ) defer pg . originator . TaskSet ( ) . mu . RUnlock ( ) return pg . ancestors == 0 }
IsOrphan returns true if this process group is an orphan.
IsOrphan returns true if this process group is an orphan .