mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 15:45:08 +00:00
Ladybird: Exit Ladybird normally during dump-layout-tree mode
Don't use _exit() - this is a forceful exit that will bypass all exit handlers. This includes AddressSanitizer, and will prevent ASan from exiting the app with a fatal error code.
This commit is contained in:
parent
9fd54e1f90
commit
093e7e2a86
1 changed files with 4 additions and 1 deletions
|
@ -87,8 +87,11 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
auto dump = view.dump_layout_tree().release_value_but_fixme_should_propagate_errors();
|
auto dump = view.dump_layout_tree().release_value_but_fixme_should_propagate_errors();
|
||||||
outln("{}", dump);
|
outln("{}", dump);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
_exit(0);
|
|
||||||
|
event_loop.quit(0);
|
||||||
|
app.quit();
|
||||||
};
|
};
|
||||||
|
|
||||||
view.load(url);
|
view.load(url);
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue