about summary refs log tree commit diff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-21T13·31+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-21T13·31+0200
commit809ca33806d75eeabb9c668b124762fb6462e5bc (patch)
tree475f02c052e8bf8e733d18bea4a5d4e5624edcac /src/libutil/util.hh
parent163fdf292e5368e8102f34f246547ba992e5cab4 (diff)
Use PR_SET_PDEATHSIG to ensure child cleanup
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index f6f5d1b3fee7..4f9f7422c09f 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<void()> fun, const string & errorPrefix = "error: ");
+pid_t startProcess(std::function<void()> fun, bool dieWithParent = true,
+    const string & errorPrefix = "error: ");
 
 
 /* Run a program and return its stdout in a string (i.e., like the