From dac6950d9e556d5521ad7913d27a6cf83e2a90a1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 9 Apr 2017 23:46:17 +0200 Subject: Clean up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/util.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/util.c') diff --git a/src/util.c b/src/util.c index 21b2b69..b5aac6e 100644 --- a/src/util.c +++ b/src/util.c @@ -1,9 +1,6 @@ /* See LICENSE file for copyright and license details. */ #include "util.h" -#if defined(HAVE_PRCTL) -# include -#endif #include #include #include @@ -200,9 +197,7 @@ enfork_jobs(int status, size_t *start, size_t *end, size_t jobs, pid_t **pids) for (j = 1; j < jobs; j++) { pid = enfork(status); if (!pid) { -#if defined(HAVE_PRCTL) && defined(PR_SET_PDEATHSIG) - prctl(PR_SET_PDEATHSIG, SIGKILL); -#endif + pdeath(SIGKILL); *start = n * (j + 0) / jobs + s; *end = n * (j + 1) / jobs + s; return 0; -- cgit v1.2.3-70-g09d2