1
Fork 0
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:
Timothy Flynn 2023-01-31 08:46:12 -05:00 committed by Linus Groh
parent 9fd54e1f90
commit 093e7e2a86

View file

@ -87,8 +87,11 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto dump = view.dump_layout_tree().release_value_but_fixme_should_propagate_errors();
outln("{}", dump);
fflush(stdout);
_exit(0);
event_loop.quit(0);
app.quit();
};
view.load(url);
return app.exec();
}