Ladybird: Flush stdout before exit in layout dump output mode

This commit is contained in:
Aliaksandr Kalenik 2023-01-29 03:05:20 +03:00 committed by Linus Groh
parent 489fe49321
commit 0c6b942ca9
Notes: sideshowbarker 2024-07-17 10:05:47 +09:00

View file

@ -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);