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

Issue 9315037: Wait for exit-code thread to terminate before terminating main. (Closed)

Created:
8 years, 10 months ago by Mads Ager (google)
Modified:
8 years, 10 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Wait for exit-code thread to terminate before terminating main. The code is identical on Linux and Mac. Currently unimplemented on Windows because I had to revert my change to the exit code handling on Windows. I will revive that change tomorrow and implement this as part of that change. R=iposva@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=3801

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed comment. Added updated test binaries. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, --2 lines) Patch
M runtime/bin/main.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M runtime/bin/process.h View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/process_linux.cc View 1 4 chunks +42 lines, -0 lines 0 comments Download
M runtime/bin/process_macos.cc View 1 4 chunks +42 lines, -0 lines 0 comments Download
M runtime/bin/process_win.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M tools/testing/bin/linux/dart View 0 chunks +-1 lines, --1 lines 0 comments Download
M tools/testing/bin/macos/dart View 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mads Ager (google)
8 years, 10 months ago (2012-02-01 17:39:34 UTC) #1
Ivan Posva
LGTM with comment. -Ivan https://chromiumcodereview.appspot.com/9315037/diff/1/runtime/bin/process_linux.cc File runtime/bin/process_linux.cc (right): https://chromiumcodereview.appspot.com/9315037/diff/1/runtime/bin/process_linux.cc#newcode104 runtime/bin/process_linux.cc:104: static const uint8_t kThreadTerminateByte = ...
8 years, 10 months ago (2012-02-01 18:09:24 UTC) #2
Mads Ager (google)
8 years, 10 months ago (2012-02-01 18:15:18 UTC) #3
Thanks Ivan. Updated linux and mac test binaries and committed.

https://chromiumcodereview.appspot.com/9315037/diff/1/runtime/bin/process_lin...
File runtime/bin/process_linux.cc (right):

https://chromiumcodereview.appspot.com/9315037/diff/1/runtime/bin/process_lin...
runtime/bin/process_linux.cc:104: static const uint8_t kThreadTerminateByte = 1;
On 2012/02/01 18:09:24, Ivan Posva wrote:
> Why public? This is only used from within ExitCodeHandler.

Good point. Done.

Powered by Google App Engine
This is Rietveld 408576698