summaryrefslogtreecommitdiff
path: root/lib/server/Daemon.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-02-22 00:43:16 +0000
committerChris Wilson <chris+github@qwirx.com>2008-02-22 00:43:16 +0000
commit1a948d1c2b1eb2d8b868e81648fb19d359b71a8e (patch)
tree7adccf33ccd43493e16df2773b447ee7285abd69 /lib/server/Daemon.cpp
parent77a70367258e4eb99c455026e79156c680aa8909 (diff)
Disable -P option and showing PID in Logging on Windows.
Diffstat (limited to 'lib/server/Daemon.cpp')
-rw-r--r--lib/server/Daemon.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/server/Daemon.cpp b/lib/server/Daemon.cpp
index 0f07eac3..62ac0e30 100644
--- a/lib/server/Daemon.cpp
+++ b/lib/server/Daemon.cpp
@@ -104,9 +104,9 @@ std::string Daemon::GetOptionString()
{
return "c:"
#ifndef WIN32
- "DFk"
+ "DFkP"
#endif
- "hPqvVt:TU";
+ "hqvVt:TU";
}
void Daemon::Usage()
@@ -124,8 +124,8 @@ void Daemon::Usage()
" -D Debugging mode, do not fork, one process only, one client only\n"
" -F Do not fork into background, but fork to serve multiple clients\n"
" -k Keep console open after fork, keep writing log messages to it\n"
-#endif
" -P Show process ID (PID) in console output\n"
+#endif
" -q Run more quietly, reduce verbosity level by one, can repeat\n"
" -v Run more verbosely, increase verbosity level by one, can repeat\n"
" -V Run at maximum verbosity\n"
@@ -183,11 +183,13 @@ int Daemon::ProcessOption(signed int option)
}
break;
+ #ifndef WIN32
case 'P':
{
Console::SetShowPID(true);
}
break;
+ #endif
case 'q':
{