Commit ab6bf0ce authored by Camillo's avatar Camillo Committed by V8 LUCI CQ

[d8] Install sigterm handler after parsing the command line flags

Bug: v8:13115, chromium:1351395
Change-Id: I8804e2cbc13ed040754ab7426780c4528ed6daaa
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3826247Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82428}
parent 4c7ec1fc
......@@ -5547,9 +5547,9 @@ void d8_install_sigterm_handler() {
} // namespace
int Shell::Main(int argc, char* argv[]) {
if (!i::FLAG_fuzzing) d8_install_sigterm_handler();
v8::base::EnsureConsoleOutput();
if (!SetOptions(argc, argv)) return 1;
if (!i::FLAG_fuzzing) d8_install_sigterm_handler();
v8::V8::InitializeICUDefaultLocation(argv[0], options.icu_data_file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment