mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Ladybird: Flush stdout before exit in layout dump output mode
This commit is contained in:
parent
489fe49321
commit
0c6b942ca9
Notes:
sideshowbarker
2024-07-17 10:05:47 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/0c6b942ca9 Pull-request: https://github.com/SerenityOS/serenity/pull/17230 Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 0 deletions
|
@ -89,6 +89,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
view.on_load_finish = [&](auto&) {
|
||||
auto dump = view.dump_layout_tree().release_value_but_fixme_should_propagate_errors();
|
||||
outln("{}", dump);
|
||||
fflush(stdout);
|
||||
_exit(0);
|
||||
};
|
||||
view.load(url);
|
||||
|
|
Loading…
Reference in a new issue