diff options
author | Chris Wilson <chris+github@qwirx.com> | 2006-10-18 19:48:50 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2006-10-18 19:48:50 +0000 |
commit | a8fe12e18fcdb50d9f6cf93d9a642e22f25c0184 (patch) | |
tree | d3d89dfde9838b32224fa356fad9e2e2f3480268 /bin/bbstored/BackupStoreDaemon.cpp | |
parent | 598b7bd0699b46b91a2e445338f389a14d4773e8 (diff) |
Reinstate #ifdefs on Win32. (refs #3)
Diffstat (limited to 'bin/bbstored/BackupStoreDaemon.cpp')
-rw-r--r-- | bin/bbstored/BackupStoreDaemon.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/bbstored/BackupStoreDaemon.cpp b/bin/bbstored/BackupStoreDaemon.cpp index ce7263da..f4968a46 100644 --- a/bin/bbstored/BackupStoreDaemon.cpp +++ b/bin/bbstored/BackupStoreDaemon.cpp @@ -42,6 +42,7 @@ BackupStoreDaemon::BackupStoreDaemon() mExtendedLogging(false), mHaveForkedHousekeeping(false), mIsHousekeepingProcess(false), + mHousekeepingInited(false), mInterProcessComms(mInterProcessCommsSocket) { } @@ -159,6 +160,9 @@ void BackupStoreDaemon::Run() const Configuration &config(GetConfiguration()); mExtendedLogging = config.GetKeyValueBool("ExtendedLogging"); +#ifdef WIN32 + // Housekeeping runs synchronously on Win32 +#else // Fork off housekeeping daemon -- must only do this the first time Run() is called if(!mHaveForkedHousekeeping) { @@ -214,6 +218,7 @@ void BackupStoreDaemon::Run() THROW_EXCEPTION(ServerException, SocketCloseError) } } +#endif // WIN32 if(mIsHousekeepingProcess) { |