From 809ca33806d75eeabb9c668b124762fb6462e5bc Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 21 Aug 2014 15:31:43 +0200 Subject: Use PR_SET_PDEATHSIG to ensure child cleanup --- src/libutil/util.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libutil/util.hh') diff --git a/src/libutil/util.hh b/src/libutil/util.hh index f6f5d1b3f..4f9f7422c 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -267,7 +267,8 @@ void killUser(uid_t uid); /* Fork a process that runs the given function, and return the child pid to the caller. */ -pid_t startProcess(std::function fun, const string & errorPrefix = "error: "); +pid_t startProcess(std::function fun, bool dieWithParent = true, + const string & errorPrefix = "error: "); /* Run a program and return its stdout in a string (i.e., like the -- cgit v1.2.3