Ignore:
Timestamp:
21/08/2008 12:18:39 (4 years ago)
Author:
chris
Message:

Run housekeeping synchronously on all platforms if daemon is run in
single process mode (-D), not just on Windows.

Add a housekeeping interface to allow Boxi to run housekeeping.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbstored/BackupStoreDaemon.cpp

    r2226 r2262  
    173173        mExtendedLogging = config.GetKeyValueBool("ExtendedLogging"); 
    174174         
    175 #ifdef WIN32     
    176         // Housekeeping runs synchronously on Win32 
    177 #else 
    178         // Fork off housekeeping daemon -- must only do this the first time Run() is called 
    179         if(!mHaveForkedHousekeeping) 
     175        // Fork off housekeeping daemon -- must only do this the first 
     176        // time Run() is called.  Housekeeping runs synchronously on Win32 
     177        // because IsSingleProcess() is always true 
     178         
     179#ifndef WIN32 
     180        if(!IsSingleProcess() && !mHaveForkedHousekeeping) 
    180181        { 
    181182                // Open a socket pair for communication 
     
    207208                                BOX_INFO("Housekeeping process started"); 
    208209                                // Ignore term and hup 
    209                                 // Parent will handle these and alert the child via the socket, don't want to randomly die 
     210                                // Parent will handle these and alert the 
     211                                // child via the socket, don't want to 
     212                                // randomly die! 
    210213                                ::signal(SIGHUP, SIG_IGN); 
    211214                                ::signal(SIGTERM, SIG_IGN); 
Note: See TracChangeset for help on using the changeset viewer.