check: only call setpgid on valid child PIDs