mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
Respect MINSIGSTKSZ when allocating an alternative stack
http://hydra.nixos.org/build/5663577
This commit is contained in:
parent
161a2ccf7a
commit
3fb7ae0586
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ void detectStackOverflow()
|
|||
requires an alternative stack, otherwise the signal cannot be
|
||||
delivered when we're out of stack space. */
|
||||
stack_t stack;
|
||||
stack.ss_size = 4096 * 4;
|
||||
stack.ss_size = 4096 * 4 + MINSIGSTKSZ;
|
||||
stack.ss_sp = new char[stack.ss_size];
|
||||
if (!stack.ss_sp) throw Error("cannot allocate alternative stack");
|
||||
stack.ss_flags = 0;
|
||||
|
|
Loading…
Reference in a new issue