1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 04:21:16 +02:00

Restore stack size in child processes

Fixes #4673.
This commit is contained in:
Eelco Dolstra 2021-04-07 13:40:13 +02:00
parent 9b9e703df4
commit 906adadacd
3 changed files with 32 additions and 12 deletions

View file

@ -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();