Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
authorPeter Toonen <peter@toonen.io>2017-05-05 18:27:43 +0300
committerWes Haggard <weshaggard@users.noreply.github.com>2017-05-05 18:27:43 +0300
commitcbddb98edd6756d13baa0b4df81322512aaa868a (patch)
tree943e58dad50870a64be03a4acfc85aa228985054 /run.sh
parente921e0dc714e0a0b1aaf0575d964d171cc748987 (diff)
Source init-tools rather than execute (#19363)
* Source init-tools rather than execute in order to prevent a new process from spawning. * Added comment to prevent change from being undone at a later point in time.
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/run.sh b/run.sh
index cd70f8bcf8..1e6ce03463 100755
--- a/run.sh
+++ b/run.sh
@@ -1,10 +1,9 @@
#!/usr/bin/env bash
__scriptpath=$(cd "$(dirname "$0")"; pwd -P)
-$__scriptpath/init-tools.sh
-if [ $? -ne 0 ]; then
- exit 1
-fi
+
+# Source the init-tools.sh script rather than execute in order to preserve ulimit values in child-processes. https://github.com/dotnet/corefx/issues/19152
+. $__scriptpath/init-tools.sh
__toolRuntime=$__scriptpath/Tools
__dotnet=$__toolRuntime/dotnetcli/dotnet