aboutsummaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-05-01 13:29:56 +0100
committerGravatar Sadie Powell2024-05-01 13:44:14 +0100
commitf8f430b84545b65445e3b5db5d6103fe6477ea22 (patch)
tree3d08a2ee48fd01208f79c24f098fc0f47376d2ce /src/inspircd.cpp
parentAdd --protocoldebug, make --debug default to DEBUG not RAWIO. (diff)
Make --(protocol)debug imply --nofork.
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 681a63c38..c9e2b977c 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -341,7 +341,7 @@ namespace
ServerInstance->ConfigFileName = ExpandPath(config.c_str());
ServerInstance->Config->CommandLine.forcedebug = do_debug || do_protocoldebug;
ServerInstance->Config->CommandLine.forceprotodebug = do_protocoldebug;
- ServerInstance->Config->CommandLine.nofork = do_nofork;
+ ServerInstance->Config->CommandLine.nofork = ServerInstance->Config->CommandLine.forcedebug || do_nofork;
ServerInstance->Config->CommandLine.runasroot = do_runasroot;
ServerInstance->Config->CommandLine.writelog = !do_nolog;
ServerInstance->Config->CommandLine.writepid = !do_nopid;
@@ -580,7 +580,7 @@ InspIRCd::InspIRCd(int argc, char** argv)
*
* -- nenolod
*/
- if ((!Config->CommandLine.nofork) && (!Config->CommandLine.forcedebug))
+ if (!Config->CommandLine.nofork)
{
int fd = open("/dev/null", O_RDWR);