[Box Backup-commit] #67: Add mutexes for Win32 (client) to enable detection of running instance during install/uninstall

Box Backup trac at boxbackup.org
Thu Mar 25 14:25:54 GMT 2010


#67: Add mutexes for Win32 (client) to enable detection of running instance
during install/uninstall
-------------------------+--------------------------------------------------
 Reporter:  achim        |       Owner:  ben  
     Type:  enhancement  |      Status:  new  
 Priority:  normal       |   Milestone:       
Component:  bbackupd     |     Version:  trunk
 Keywords:               |  
-------------------------+--------------------------------------------------
 Creating mutexes for the Win32 client apps (bbackupctl.exe, bbackupd.exe,
 bbackupquery.exe) enable the detection of running instance during
 install/uninstall/upgrade. The fixes are trivial and platform-specific,
 sorry for that:

 /usr/src/boxbackup-0.11rc7/bin/bbackupd/BackupDaemon.cpp
 {{{
 BackupDaemon::BackupDaemon()
 {
         // Only ever one instance of a daemon
         SSLLib::Initialise();
         #ifdef WIN32
          CreateMutex(0,FALSE,"__boxbackup_mutex__");
         #endif
 }
 }}}


 /usr/src/boxbackup-0.11rc7/bin/bbackupctl/bbackupctl.cpp
 {{{
 int main(int argc, const char *argv[])
 {
         int returnCode = 0;

         #ifdef WIN32
          CreateMutex(0,FALSE,"__boxbackup_mutex__");
         #endif
 }}}

 /usr/src/boxbackup-0.11rc7/bin/bbackupquery/bbackupquery.cpp
 {{{
 int main(int argc, const char *argv[])
 {
         int returnCode = 0;

         #ifdef WIN32
          CreateMutex(0,FALSE,"__boxbackup_mutex__");
         #endif
 }}}

-- 
Ticket URL: <https://www.boxbackup.org/trac/ticket/67>
Box Backup <http://www.boxbackup.org/>
An open source, completely automatic on-line backup system for UNIX.



More information about the Boxbackup-commit mailing list