[Box Backup-dev] COMMIT r521 - box/chris/general/lib/server

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Sun, 26 Feb 2006 14:18:48 +0000 (GMT)


Author: chris
Date: 2006-02-26 14:18:43 +0000 (Sun, 26 Feb 2006)
New Revision: 521

Modified:
   box/chris/general/lib/server/Daemon.cpp
Log:
* Daemon.cpp
- Don't call openlog on Win32, since we already opened the log in 
  bbackupd.cpp, with a better program name than DaemonName().


Modified: box/chris/general/lib/server/Daemon.cpp
===================================================================
--- box/chris/general/lib/server/Daemon.cpp	2006-02-26 14:17:40 UTC (rev 520)
+++ box/chris/general/lib/server/Daemon.cpp	2006-02-26 14:18:43 UTC (rev 521)
@@ -263,10 +263,11 @@
 				break;
 			}
 		}
-#endif // ! WIN32
 
 		// open the log
 		::openlog(DaemonName(), LOG_PID, LOG_LOCAL6);
+#endif // ! WIN32
+
 		// Log the start message
 		::syslog(LOG_INFO, "Starting daemon (config: %s) (version " 
 			BOX_VERSION ")", mConfigFileName.c_str());