Changeset 901
- Timestamp:
- 31/08/2006 23:58:30 (5 years ago)
- File:
-
- 1 edited
-
box/chris/merge/lib/server/ServerStream.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/chris/merge/lib/server/ServerStream.h
r710 r901 57 57 } 58 58 59 #ifdef WIN3260 virtual void OnIdle() { }61 #endif62 63 59 virtual void Run() 64 60 { … … 220 216 { 221 217 // Since this is a template parameter, the if() will be optimised out by the compiler 222 #ifndef WIN32 // no fork on Win32223 218 if(ForkToHandleRequests) 224 219 { … … 261 256 else 262 257 { 263 #endif // !WIN32264 258 // Just handle in this connection 265 259 SetProcessTitle("handling"); 266 260 HandleConnection(*connection); 267 261 SetProcessTitle("idle"); 268 #ifndef WIN32 269 } 270 #endif // !WIN32 262 } 271 263 } 272 264 } 273 274 #ifdef WIN32 275 OnIdle(); 276 #else // !WIN32 265 277 266 // Clean up child processes (if forking daemon) 278 267 if(ForkToHandleRequests) … … 289 278 } while(p > 0); 290 279 } 291 #endif // !WIN32292 280 } 293 281 } … … 314 302 bool WillForkToHandleRequests() 315 303 { 316 #ifdef WIN32317 return false;318 #else319 304 return ForkToHandleRequests; 320 #endif // WIN32321 305 } 322 306
Note: See TracChangeset
for help on using the changeset viewer.
