Changeset 901


Ignore:
Timestamp:
31/08/2006 23:58:30 (5 years ago)
Author:
chris
Message:

Revert to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/merge/lib/server/ServerStream.h

    r710 r901  
    5757        } 
    5858 
    59         #ifdef WIN32 
    60         virtual void OnIdle() { } 
    61         #endif 
    62  
    6359        virtual void Run() 
    6460        { 
     
    220216                                        { 
    221217                                                // Since this is a template parameter, the if() will be optimised out by the compiler 
    222                                                 #ifndef WIN32 // no fork on Win32 
    223218                                                if(ForkToHandleRequests) 
    224219                                                { 
     
    261256                                                else 
    262257                                                { 
    263                                                 #endif // !WIN32 
    264258                                                        // Just handle in this connection 
    265259                                                        SetProcessTitle("handling"); 
    266260                                                        HandleConnection(*connection); 
    267261                                                        SetProcessTitle("idle");                                                                                 
    268                                                 #ifndef WIN32 
    269                                                 } 
    270                                                 #endif // !WIN32 
     262                                                } 
    271263                                        } 
    272264                                } 
    273  
    274                                 #ifdef WIN32 
    275                                 OnIdle(); 
    276                                 #else // !WIN32 
     265                                 
    277266                                // Clean up child processes (if forking daemon) 
    278267                                if(ForkToHandleRequests) 
     
    289278                                        } while(p > 0); 
    290279                                } 
    291                                 #endif // !WIN32 
    292280                        } 
    293281                } 
     
    314302        bool WillForkToHandleRequests() 
    315303        { 
    316                 #ifdef WIN32 
    317                 return false; 
    318                 #else 
    319304                return ForkToHandleRequests; 
    320                 #endif // WIN32 
    321305        } 
    322306 
Note: See TracChangeset for help on using the changeset viewer.