| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
Allows tests to depend on lib/bbackupd instead of bin/bbackupd, which was
always a hack, and really doesn't work with CMake.
|
|
|
|
|
| |
64 bits.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Import of the upstream sources from
Repository: http://localhost:8000/
Kind: hg
Revision: 7807b7768163f1c2537756abe5416063989cebb1
Original author: tailor@rocio.int.aidworld.org
Date: 2008-03-16 19:44:36+00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
errno, replacing almost all use of strerror() in the main code.
Log a more detailed error message before throwing an exception for some
more system call failures.
Make FileStream store its filename on all platforms, not just Windows.
Wrap some long lines at less than 80 characters to improve readability.
Fix some minor violations of coding standard (white space) and a typo
in a comment.
|
|
|
|
|
|
|
|
| |
Pass the service name on the service command line, and use it for event
log messages.
(merges [1856])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
return it to Windows so that Windows doesn't tell the admin that
"the service did not report an error" when it stopped unexpectedly.
When failing to contact the SCM, report a textual error message as
well as the error code.
Make OurService() take a const char * instead of char *, so that we can
pass it a std::string.c_str().
InstallService creates service using "-s" option instead of "--service",
which no longer works once we use getopt() for option processing
(to follow).
(merges [1853])
|
|
|
|
|
|
|
| |
Return a non-zero exit code if running as a service fails.
(merges [1813])
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
- Improved diagnostic output if InstallService() fails
- Ensure that InstallService() cleans up all resources
- Check that the requested configuration file is accessible
- Include the configuration file in the service parameters
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bin/bbackupd/Win32ServiceFunctions.cpp
- InstallService() and OurService() take the config file name as a
parameter
- InstallService() returns an integer status code like RemoveService()
- OurService() sets the global static config file name to pass into
the main thread later
* bin/bbackupd/bbackupd.cpp
- Call InstallService() and OurService() with the config file name as a
parameter
|
|
|
|
|
|
| |
- RemoveService() returns a status code, 0 for success, 1 for error
- RemoveService() outputs better diagnostic messages on failure
|
|
|
|
|
|
|
|
| |
- Keep a static char pointer to hold onto the config file name to
pass it to ServiceMain (over whose parameters we have no control).
- ServiceMain passes the config file name as the parameter of the
thread it creates.
|
|
|
|
|
| |
- More cosmetic spacing fixes
|
|
|
|
|
| |
- Reindent ServiceMain function to match coding standards and rest of file
|
|
|
|
|
| |
- 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).
|
|
|
|
| |
distribution
|
|
|