aboutsummaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-03-02 12:24:00 +0000
committerGravatar Sadie Powell2025-03-02 12:24:00 +0000
commit030d71057597553dad26df8d9491c00f95bff669 (patch)
tree70bf3454a9992a85e6dfb9ce2648c26c9f3cea5d /src/inspircd.cpp
parentFix a compiler error in helperfuncs. (diff)
Flush stderr and stdout after starting up if using --nofork.
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp3
1 files changed, 3 insertions, 0 deletions
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