summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Fixed a race condition caused by rescheduling in signal handler (refs Chris Wilson2006-12-03
| | | | | #3, refs #9)
* Make the timer test reliable by using nanosleep() instead of sleep(), Chris Wilson2006-12-03
| | | | | | since sleep() may use signals and interfere with SIGALRM, and also cannot be resumed if interrupted by a signal. (refs #3, refs #9).
* Send keepalives when needed while scanning large directories (refs #3, Chris Wilson2006-12-03
| | | | | refs #9)
* Moved KeepAlive timer to BackupClientContext object.Chris Wilson2006-12-03
| | | | | | | | Made timeout initialisation non-static, and a property of the context object. (perhaps should be in rParams, I know). (refs #3, refs #9)
* Added tests for keepalives while scanning large directories. (refs #3, Chris Wilson2006-12-03
| | | | | refs #9)
* Log failure to rename ID map files. (refs #3)Chris Wilson2006-12-03
|
* Document that restore -d can be used to restore deleted files in any Chris Wilson2006-12-03
| | | | | directory, deleted or not. (refs #3)
* Added a header file for including in test/bbackupd/testbbackupd.cpp and Chris Wilson2006-12-03
| | | | | | | | | other modules which might need intercepts in future. Added opendir/readdir and lstat hook capability. (refs #3, refs #9)
* Pass any command-line parameters from t-gdb to gdb (refs #3)Chris Wilson2006-12-03
|
* Search for dlfcn.h and dlsym() (needed for new intercept code) (refs #3, Chris Wilson2006-12-03
| | | | | refs #9)
* Replace old-style setitimers for KeepAliveTime and MaximumDiffingTime Chris Wilson2006-11-28
| | | | | with new Timer objects. (refs #3, refs #9)
* Added ability for delay intercepts to fire multiple times.Chris Wilson2006-11-28
| | | | | Added test for repeat keepalives to test/bbackupd.
* Added debug tracing code for timers.Chris Wilson2006-11-28
|
* Added a test for diff termination if MaximumDiffingTime is exceeded Chris Wilson2006-11-27
| | | | | (refs #3, refs #9)
* * Fix timer expiry calculation when timers expire in the pastChris Wilson2006-11-26
| | | | | * Fix handling of timers which never expire (zero deadline) (refs #9)
* Added test for keepalives being sent (refs #9)Chris Wilson2006-11-26
|
* Catch any exceptions while handling a connection and report to user Chris Wilson2006-11-26
| | | | | | rather than terminating. Useful for non-forking servers like bbstored on Windows. (refs #3)
* * Try to kill any daemons left over from previous tests before running Chris Wilson2006-11-26
| | | | | | new tests. * Try to kill any remaining daemons at the end of the test (refs #3)
* Moved intercept code to a library module to allow it to be used by Chris Wilson2006-11-26
| | | | | test/bbackupd as well (refs #3)
* Separate ReadPidFile() out from LaunchServer() in test code (refs #9)Chris Wilson2006-11-26
|
* Add missing newlines to protocol logging to a file (refs #9)Chris Wilson2006-11-26
|
* * Allow Daemons to be created more than once per processChris Wilson2006-11-26
| | | | | | | * Don't initialise signal handler until after fork, in case the parent is actually a unit test or another complex application * Don't exit(0) in the parent, for the same reason (refs #9)
* Use gettimeofday() to increase accuracy of GetCurrentBoxTime() on Chris Wilson2006-11-23
| | | | | | | platforms which support it. Fixes busy waits for 1 second in backup client when time for next backup is not on a 1 second boundary (which it never is). (refs #3)
* Add ExtendedLogFile option to bbackupd config (refs #9)Chris Wilson2006-11-14
|
* Don't try to write to the interprocess socket if it's not open (refs #3)Chris Wilson2006-11-13
|
* Properly revert [1096] (refs #3)Chris Wilson2006-11-13
|
* Revert [1096] as it causes infinite loops if the listening socket Chris Wilson2006-11-13
| | | | | can't be opened (refs #3)
* Fix memory leak false alarms caused by static allocations.Chris Wilson2006-11-13
|
* Initialise timers in all unit tests (refs #9)Chris Wilson2006-11-13
|
* Initialise memory leak finder in all unit tests (refs #3)Chris Wilson2006-11-13
|
* Fixed control reaching end of non-void functions (refs #3)Chris Wilson2006-11-13
|
* Initialise cross-platform timers on all platforms, remove win32-specific Chris Wilson2006-11-13
| | | | | code (refs #9)
* Initialise memleak finder at the start of every program that uses Chris Wilson2006-11-13
| | | | | MAINHELPER (all except unit tests). (refs #3)
* Fix memory leak false alarms caused by modifying static objects (refs #3)Chris Wilson2006-11-13
|
* * Track memory leaks in allocations via the standard libraries, and Chris Wilson2006-11-13
| | | | | | | | | | | | | avoid malloc/delete mismatches, by overriding standard new operator. * Added another global enable flag to memleak finder, which is used to mark the end of static allocations and the start of dynamic code, since the memory leak detection is done before cleanup of static objects. * Added a public guard class, to allow safe scoped disabling of memory leak detection. * Added InternalAllocGuard to protect against recursive loops when allocating memory inside the memory leak checker. (refs #3)
* Fixed typo.Chris Wilson2006-11-13
|
* Setup MAINHELPER as early as possible, and clear it as late as possible, Chris Wilson2006-11-13
| | | | | for consistency (refs #3)
* openlog inside MAINHELPER block, to ensure that any memory leaks will be Chris Wilson2006-11-13
| | | | | caught (refs #3)
* Use a static pointer rather than a static object, to allow it to be Chris Wilson2006-11-13
| | | | | freed in Timers::Cleanup, removing a reported memory leak (refs #9)
* Free backtrace strings even in debug mode by suppressing warnings from Chris Wilson2006-11-13
| | | | | DebugMemLeakFinder, to avoid a memory leak (refs #3)
* Declare MEMLEAKFINDER_INIT and MEMLEAKFINDER_NO_LEAKS macros which Chris Wilson2006-11-13
| | | | | | reference function and class in DebugMemLeakFinder only in debug mode (refs #3)
* Fixed typo (refs #3)Chris Wilson2006-11-13
|
* Fix memory leak when TLSContext is reinitialised (refs #3)Chris Wilson2006-11-13
|
* Fixed typo.Chris Wilson2006-11-13
|
* Force glibc to use new/delete to allocate memory and disable its Chris Wilson2006-11-13
| | | | | | internal pools for the unit tests, to make memory leak detection work (refs #3)
* Added tests for timers with zero interval, which should never expire Chris Wilson2006-11-13
| | | | | (refs #9)
* Fix scoping to ensure that objects which allocate memory via the Chris Wilson2006-11-13
| | | | | | standard libraries, free it before the memleak tests, to avoid test failures (refs #3)
* Fix compile warnings (refs #3)Chris Wilson2006-11-06
|
* Protect against double initialisation of win32 timersChris Wilson2006-11-06
|
* Added generic timer support classChris Wilson2006-11-06
|