aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-04-07 13:40:13 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-04-07 13:40:13 +0200
commit906adadacd2d1c98346a2f42c0b42a32d2806d94 (patch)
tree9f5857a50ba968408242bd766bf592eefe803495 /src/libutil/util.hh
parent9b9e703df41d75949272059f9b8bc8b763e91fce (diff)
Restore stack size in child processes
Fixes #4673.
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 4762d1e55..f84d0fb31 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -300,6 +300,10 @@ std::pair<int, std::string> runProgram(const RunOptions & options);
void runProgram2(const RunOptions & options);
+/* Change the stack size. */
+void setStackSize(size_t stackSize);
+
+
/* Restore the original inherited Unix process context (such as signal
masks, stack size, CPU affinity). */
void restoreProcessContext();