diff options
author | Michał Zieliński <michal@zielinscy.org.pl> | 2014-02-23 21:02:13 +0100 |
---|---|---|
committer | Michał Zieliński <michal@zielinscy.org.pl> | 2014-02-23 21:06:40 +0100 |
commit | 6712aa6e38fdab6e250532c622d3191c16c2dc25 (patch) | |
tree | 7f51879bbc16bbf481003d8c4efe8ebd64582016 /lib | |
parent | 95eb2b88e6820e23d74e4a54e9aa4fba5415ec5f (diff) | |
download | Nim-6712aa6e38fdab6e250532c622d3191c16c2dc25.tar.gz |
osproc: use fork by default on Linux, clone if requested by useClone flag
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/osproc.nim | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim index 5c34c5a11..0ac01091c 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) |