| Commit message (Collapse) | Author | Age |
|
|
|
| |
Break dependendency of test/bbackupd on individual files from other modules.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We pass a std::auto_ptr<SocketStream> to every Protocol subclass when we
construct it, and it takes control of this object. This reduces the risk of:
* accidentally reusing the same SocketStream for multiple Protocols
(it happened to me in testbackupstore);
* holding onto a reference to the SocketStream;
* allowing a locally-scoped SocketStream to go out of scope and be released
while still being referenced by a live Protocol.
|
|
|
|
|
|
| |
Rename mrDaemon to mpHousekeeping and make it a pointer, so that it can
officially be NULL, and don't crash if it is, and we fail to get a lock
on the account.
|
|
|
|
|
|
|
| |
Until the groundwork is prepared by changing Protocol's use of IOStream to
SocketStream.
This reverts commit 78531354753f3ce9bb3ef1d906b2aeaac5b73d58.
|
|
|
|
| |
One less reason to hang onto a Stream reference, that will go away soon.
|
| |
|
|
|
|
| |
requested by Pete Jalajas.
|
|
|
|
|
| |
Rename ProtocolObject to Message.
|
| |
|
|
|
|
|
| |
in syslog and on the console.
|
|
|
|
|
| |
important and useful.
|
|
|
|
|
|
|
| |
single process mode (-D), not just on Windows.
Add a housekeeping interface to allow Boxi to run housekeeping.
|
|
|
|
|
| |
Add a TestHook to help test weird server behaviour such as crashes.
|
|
|
|
|
|
|
|
|
| |
Extend usage info with service commands in BackupDaemon.
Disable useless -D, -V and -k options on Windows.
(merges 1855])
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in C++ style.
Add a function to get default config file paths at runtime, dependent on
the location of the executable being run.
Pass the config file name directly to Daemon::Main, instead of faking argv.
No default raid file path at compile time on Windows, depends on
executable location when run.
Determine RaidFile path at runtime if not supplied in config file
on Windows.
Don't define default locations for config files at compile time on Windows,
provide macros to determine them at runtime instead.
Make FileHandleGuard take a std::string instead of a char array, C++ style.
Determine config file location at runtime instead of hard-coding on
Windows. Thanks to Paul MacKenzie, Per Thomsen, Pete Jalajas, Stuart
Sanders, Dave Bamford and Gary for pushing me to do this. (fixes #12)
Determine config file path at runtime. Call Daemon::Main with config file
name instead of building fake argv.
(refs #3, merges [1684] [1685] [1686] [1687] [1688] [1689] [1690]
[1691] [1692])
|
| |
|
| |
|
|
|
|
|
|
| |
rather than terminating. Useful for non-forking servers like bbstored on
Windows. (refs #3)
|
| |
|
| |
|
|
|
|
|
| |
can't be opened (refs #3)
|
| |
|
|
|
|
|
| |
the server process, on platforms where forking is disabled (Win32). (refs #3)
|
| |
|
|
|
|
|
| |
- Cast off_t to long long, in case they differ in size (e.g. Win32)
|
|
|
|
|
| |
- Only include <syslog.h> if we have it
|
|
|
|
|
| |
- Revert to trunk
|
|
|
|
|
|
|
| |
- This is my current patch queue. I think that all of these are safe
to apply. This is just under half of the pending changes in
chris/general (the easy half).
|
|
|
|
| |
with minor change to exception handling
|
|
|
|
| |
You may need a new checkout to see this.
|
|
|