From 030d71057597553dad26df8d9491c00f95bff669 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 2 Mar 2025 12:24:00 +0000 Subject: [PATCH] Flush stderr and stdout after starting up if using --nofork. --- src/inspircd.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 38657b0fb..67fc29ef5 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -579,6 +579,9 @@ InspIRCd::InspIRCd(int argc, char** argv) } else { + fflush(stderr); + fflush(stdout); + Logs.Normal("STARTUP", "Keeping pseudo-tty open as we are running in the foreground."); } #else