Revert "check: only call setpgid on valid child PIDs"

This reverts commit b9313afc75.

This should be fixed in upstream libcheck instead. We want
to keep diff of our local copy to upstream libcheck
to a minimum.
This commit is contained in:
Tim-Philipp Müller 2014-04-07 17:47:30 +01:00
parent fe7925373d
commit 8924782dd4

View file

@ -571,8 +571,7 @@ check_fork (void)
#ifdef _POSIX_VERSION
pid_t pid = fork ();
/* Set the process to a process group to be able to kill it easily. */
if (pid > 0)
setpgid (pid, group_pid);
setpgid (pid, group_pid);
return pid;
#else /* _POSIX_VERSION */
eprintf ("This version does not support fork", __FILE__, __LINE__);