diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2014-02-23 21:43:00 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2014-02-23 21:43:00 +0100 |
commit | 00b69192f2fc4d5b0546d5b45a32383b2536275d (patch) | |
tree | 69015f243148c4df7af54eccd07e805d0d7901de /lib | |
parent | 46967f921a282bc2bbff351911ebca78af14dd4b (diff) | |
parent | 6712aa6e38fdab6e250532c622d3191c16c2dc25 (diff) | |
download | Nim-00b69192f2fc4d5b0546d5b45a32383b2536275d.tar.gz |
Merge pull request #953 from zielmicha/vfork
osproc: increase stack size from 8k to 64k and disable useClone default
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/osproc.nim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim index b88cbed44..79a4de04b 100644 --- a/lib/pure/osproc.nim +++ b/lib/pure/osproc.nim @@ -22,8 +22,6 @@ else: when defined(linux): import linux - when not defined(useFork): - const useClone = true type TProcess = object of TObject @@ -663,7 +661,7 @@ elif not defined(useNimRtl): data.workingDir = workingDir - when defined(posix_spawn) and not defined(useFork) and not defined(useClone): + when defined(posix_spawn) and not defined(useFork) and not defined(useClone) and not defined(linux): pid = startProcessAuxSpawn(data) else: pid = startProcessAuxFork(data) @@ -750,7 +748,7 @@ elif not defined(useNimRtl): var dataCopy = data if defined(useClone): - const stackSize = 8096 + const stackSize = 65536 let stackEnd = cast[clong](alloc(stackSize)) let stack = cast[pointer](stackEnd + stackSize) let fn: pointer = startProcessAfterFork |