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/jobs.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/util/jobs.h') diff --git a/src/util/jobs.h b/src/util/jobs.h index d45433c..9accf84 100644 --- a/src/util/jobs.h +++ b/src/util/jobs.h @@ -1,4 +1,13 @@ /* See LICENSE file for copyright and license details. */ +#if defined(HAVE_PRCTL) +# include +#endif + +#if defined(HAVE_PRCTL) && defined(PR_SET_PDEATHSIG) +# define pdeath(SIGNAL) prctl(PR_SET_PDEATHSIG, SIGNAL); +#else +# define pdeath(SIGNAL) +#endif #define efork_jobs(...) enfork_jobs(1, __VA_ARGS__) #define ejoin_jobs(...) enjoin_jobs(1, __VA_ARGS__) -- cgit v1.2.3-70-g09d2