Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Issue 1156313004: Clean up process spawning. (Closed)

Created:
5 years, 6 months ago by Anders Johnsen
Modified:
5 years, 6 months ago
Reviewers:
Søren Gjesse, kevmoo
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Clean up process spawning. Pass environment as argument to execvpe and use _exit instead of exit (so fork/vfork can be used interchangeable). BUG= R=sgjesse@google.com Committed: https://github.com/dart-lang/sdk/commit/bbdc57ebf6a5f0a2646c88ce3c42ff866ab97599

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -124 lines) Patch
M runtime/bin/process_android.cc View 1 9 chunks +26 lines, -36 lines 0 comments Download
M runtime/bin/process_linux.cc View 1 9 chunks +26 lines, -36 lines 0 comments Download
M runtime/bin/process_macos.cc View 1 9 chunks +26 lines, -37 lines 0 comments Download
M tests/standalone/io/platform_executable_test.dart View 2 chunks +5 lines, -15 lines 1 comment Download

Messages

Total messages: 8 (2 generated)
Anders Johnsen
Will port to android/mac when/if accepted.
5 years, 6 months ago (2015-06-05 20:45:17 UTC) #2
Søren Gjesse
lgtm https://codereview.chromium.org/1156313004/diff/1/runtime/bin/process_linux.cc File runtime/bin/process_linux.cc (right): https://codereview.chromium.org/1156313004/diff/1/runtime/bin/process_linux.cc#newcode413 runtime/bin/process_linux.cc:413: _exit(1); Good catch! https://codereview.chromium.org/1156313004/diff/1/runtime/bin/process_linux.cc#newcode502 runtime/bin/process_linux.cc:502: // Exit the ...
5 years, 6 months ago (2015-06-10 07:20:25 UTC) #3
Anders Johnsen
Added mac and android versions. PTAL https://codereview.chromium.org/1156313004/diff/1/runtime/bin/process_linux.cc File runtime/bin/process_linux.cc (right): https://codereview.chromium.org/1156313004/diff/1/runtime/bin/process_linux.cc#newcode502 runtime/bin/process_linux.cc:502: // Exit the ...
5 years, 6 months ago (2015-06-10 08:00:45 UTC) #4
Søren Gjesse
lgtm
5 years, 6 months ago (2015-06-10 08:19:17 UTC) #5
Anders Johnsen
Committed patchset #2 (id:20001) manually as bbdc57ebf6a5f0a2646c88ce3c42ff866ab97599 (presubmit successful).
5 years, 6 months ago (2015-06-10 08:43:00 UTC) #6
kevmoo
5 years, 6 months ago (2015-06-10 10:06:42 UTC) #8
Message was sent while issue was closed.
DBQ

https://codereview.chromium.org/1156313004/diff/20001/tests/standalone/io/pla...
File tests/standalone/io/platform_executable_test.dart (left):

https://codereview.chromium.org/1156313004/diff/20001/tests/standalone/io/pla...
tests/standalone/io/platform_executable_test.dart:152:
testShouldFailOutsidePath(); /// 06: ok
This test existed for a very explicit reason: make sure running just 'dart' (or
'dart.exe') without the PATH set fails.

Powered by Google App Engine
This is Rietveld 408576698