From 8924782dd46ca6c41d4fb132506b7ea62acb6b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 7 Apr 2014 17:47:30 +0100 Subject: [PATCH] Revert "check: only call setpgid on valid child PIDs" This reverts commit b9313afc75b68d986e473b76b55543456857912b. This should be fixed in upstream libcheck instead. We want to keep diff of our local copy to upstream libcheck to a minimum. --- libs/gst/check/libcheck/check_run.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/gst/check/libcheck/check_run.c b/libs/gst/check/libcheck/check_run.c index 9390cd9f08..0c7b815229 100644 --- a/libs/gst/check/libcheck/check_run.c +++ b/libs/gst/check/libcheck/check_run.c @@ -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__);