Windows' GetAppOutputWithExitCode() and GetTerminationStatus() exit code semantics do not agree |
|
Issue descriptionGetAppOutputWithExitCode's API contract states that an application can exit normally (resulting in a 'true' return value), but still return a nonzero exit code. This is not possible on Windows, because in the switch case defined in https://cs.chromium.org/chromium/src/base/process/kill_win.cc?rcl=be3bfc9d9de4bd4f49b8cdb8056e6700e6d15af8&l=64 , all nonzero exit codes are treated as crashes. It might be worth revisiting the switch case in kill_win.cc, or documenting this variance in GetAppOutputWithExitCode()'s comments. |
|
►
Sign in to add a comment |
|
Comment 1 by brucedaw...@chromium.org
, Apr 30 2018