aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-02-10 14:38:14 +0100
committerEelco Dolstra <edolstra@gmail.com>2023-02-10 14:38:14 +0100
commitf094ba7386fc5fbb3df5fd84008ca07d2289ff26 (patch)
treef4796141204130e6f157487b312d9d8ace8551e2 /src/libutil/util.hh
parent5597d68e2d73a3b89ff36fcfeac82d7fe7d4f384 (diff)
Simplify the PID namespace check: just try to mount /proc
Fixes #7783.
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 266da0ae3..95562280e 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -301,6 +301,7 @@ struct ProcessOptions
bool dieWithParent = true;
bool runExitHandlers = false;
bool allowVfork = false;
+ int cloneFlags = 0; // use clone() with the specified flags (Linux only)
};
pid_t startProcess(std::function<void()> fun, const ProcessOptions & options = ProcessOptions());