[Box Backup-dev] COMMIT r268 - box/chris/win32/vc2005-compile-fixes/lib/backupclient
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Thu Dec 22 02:09:52 GMT 2005
Author: chris
Date: 2005-12-22 02:09:50 +0000 (Thu, 22 Dec 2005)
New Revision: 268
Modified:
box/chris/win32/vc2005-compile-fixes/lib/backupclient/BackupStoreFileDiff.cpp
Log:
Use SetTimerHandler rather than signal on win32
Modified: box/chris/win32/vc2005-compile-fixes/lib/backupclient/BackupStoreFileDiff.cpp
===================================================================
--- box/chris/win32/vc2005-compile-fixes/lib/backupclient/BackupStoreFileDiff.cpp 2005-12-22 02:09:21 UTC (rev 267)
+++ box/chris/win32/vc2005-compile-fixes/lib/backupclient/BackupStoreFileDiff.cpp 2005-12-22 02:09:50 UTC (rev 268)
@@ -1031,12 +1031,17 @@
// --------------------------------------------------------------------------
void StartDiffTimer()
{
+#ifdef WIN32
+ // no support for SIGVTALRM
+ SetTimerHandler(TimerSignalHandler);
+#else
// Set timer signal handler
if(!sSetTimerSignelHandler)
{
::signal(SIGVTALRM, TimerSignalHandler);
sSetTimerSignelHandler = true;
}
+#endif
struct itimerval timeout;
// Don't want this to repeat
More information about the Boxbackup-dev
mailing list