pro: Stop closing stdout early

This was causing a race-condition where sometimes the response body
would not get printed.

Co-authored-by: Ali Mohammad Pur <mpfard@serenityos.org>
This commit is contained in:
Sam Atkins 2022-10-10 17:21:42 +01:00 committed by Andreas Kling
parent f06a7f40bf
commit 437c6fc277
Notes: sideshowbarker 2024-07-17 06:02:15 +09:00

View file

@ -329,7 +329,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
dbgln("started request with id {}", request->id());
auto rc = loop.exec();
// FIXME: This shouldn't be needed.
fclose(stdout);
fflush(stdout);
return rc;
}