From 1a948d1c2b1eb2d8b868e81648fb19d359b71a8e Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 22 Feb 2008 00:43:16 +0000 Subject: Disable -P option and showing PID in Logging on Windows. --- lib/server/Daemon.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/server') 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': { -- cgit v1.2.3