Changeset 1741
- Timestamp:
- 26/07/2007 22:35:52 (18 months ago)
- Location:
- box/chris/general/lib/server
- Files:
-
- 2 modified
-
Daemon.cpp (modified) (4 diffs)
-
Daemon.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
box/chris/general/lib/server/Daemon.cpp
r1735 r1741 54 54 mTerminateWanted(false), 55 55 mSingleProcess(false), 56 mRunInForeground(false), 56 57 mKeepConsoleOpenAfterFork(false) 57 58 { … … 122 123 #endif 123 124 124 while((c = getopt(argc, (char * const *)argv, "c:D qvVt:Tk")) != -1)125 while((c = getopt(argc, (char * const *)argv, "c:DFqvVt:Tk")) != -1) 125 126 { 126 127 switch(c) … … 136 137 { 137 138 mSingleProcess = true; 139 } 140 break; 141 142 case 'F': 143 { 144 mRunInForeground = true; 138 145 } 139 146 break; … … 251 258 mConfigFileName = rConfigFileName; 252 259 253 bool asDaemon = !mSingleProcess ;260 bool asDaemon = !mSingleProcess && !mRunInForeground; 254 261 255 262 try -
box/chris/general/lib/server/Daemon.h
r1603 r1741 80 80 bool mTerminateWanted; 81 81 bool mSingleProcess; 82 bool mRunInForeground; 82 83 bool mKeepConsoleOpenAfterFork; 83 84 static Daemon *spDaemon;
