Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Convert most printf() and fprintf() calls to use logging framework | Chris Wilson | 2007-08-02 |
| | | | | | instead. (refs #3) | ||
* | Replace almost all calls to syslog() with logging framework. (refs #3) | Chris Wilson | 2007-07-31 |
| | |||
* | Use a signed int instead of char for getopt, thanks Martin. (refs #3) | Chris Wilson | 2007-07-05 |
| | |||
* | Make char signed to fix getopt usage on ARM and PowerPC, thanks to TBP and | Chris Wilson | 2007-07-04 |
| | | | | | | Reinhard Tartler (refs #3, see http://lists.warhead.org.uk/pipermail/boxbackup/2007-July/003614.html) | ||
* | More debugging. | Chris Wilson | 2007-07-03 |
| | |||
* | Hopefully work around buggy getopt implementation noted by TBP in | Chris Wilson | 2007-07-03 |
| | | | | | | http://lists.warhead.org.uk/pipermail/boxbackup/2007-July/003614.html (refs #3) | ||
* | Add extra debugging to help find out why getopt is behaving weirdly | Chris Wilson | 2007-06-30 |
| | | | | | | on debian etch (http://lists.warhead.org.uk/pipermail/boxbackup/2007-June/003603.html) | ||
* | Log reasons for failure to connect to a socket. | Chris Wilson | 2007-06-28 |
| | |||
* | Add a new -F option for daemons, which runs in the foreground but still | Chris Wilson | 2007-06-28 |
| | | | | | accepts multiple connections, unlike -D or SINGLEPROCESS. | ||
* | Get it right this time. | Chris Wilson | 2007-06-04 |
| | |||
* | Hopefully reset getopt in a way that's compatible with BSD and GLIBC, | Chris Wilson | 2007-06-04 |
| | | | | | thanks to Tobias Balle-Petersen for pointing out this bug. | ||
* | Initialise mSingleProcess flag to false (oops!) (refs #3) | Chris Wilson | 2007-04-29 |
| | |||
* | Don't fork to handle requests when running as a single process (very | Chris Wilson | 2007-04-28 |
| | | | | | useful for debugging). (refs #3) | ||
* | Remove comments accidentally left in [1591]. (refs #3) | Chris Wilson | 2007-04-28 |
| | |||
* | Make Daemon remember whether we're supposed to run in a single process, | Chris Wilson | 2007-04-28 |
| | | | | | or not. (refs #3) | ||
* | Ignore attempts to listen on a Unix socket on Win32, so that we can share | Chris Wilson | 2007-04-22 |
| | | | | | config files for the unit tests (refs #3) | ||
* | Add -V option, which sets maximum verbosity in one go. | Chris Wilson | 2007-04-22 |
| | | | | | | | | | | | Add -T option, which adds timestamps to console logs. Add -t option, which enabled and sets the tag used on console logs. Add -k option, which keeps console open after forking. (refs #3) | ||
* | Compile fix, always include Test.h (refs #3) | Chris Wilson | 2007-04-21 |
| | |||
* | Don't log errors or throw exceptions when we get ERROR_NO_DATA, which just | Chris Wilson | 2007-04-20 |
| | | | | | | | | | | | | | | | means that the pipe is being closed. Treat it as a normal remote close (EOF) instead. Don't log an error if DisconnectNamedPipe tells us that the remote end already closed the pipe (ERROR_PIPE_NOT_CONNECTED). Treat ERR_PIPE_NOT_CONNECTED during pipe reads as EOF as well. Improve logging of pipe errors by including the error message. (refs #3, merges [1458] and [1463]) | ||
* | Improve logging of pipe errors by including the error message. (refs #3, | Chris Wilson | 2007-03-24 |
| | | | | | merges part of [1458]) | ||
* | Reduce default logging level in debug builds from TRACE back down to INFO, | Chris Wilson | 2007-03-24 |
| | | | | | to reduce noise in tests. (refs #3, merges [1441]) | ||
* | Use logging framework to reduce noise for those who don't want it | Chris Wilson | 2007-03-24 |
| | | | | | (refs #3, merges [1439] [1440] [1443]) | ||
* | Change named pipe from message to byte mode. Thanks to Charles Lecklider | Chris Wilson | 2007-03-24 |
| | | | | | for pointing this out. | ||
* | Use memmove() for overlapping source and destination buffer. Thanks to | Chris Wilson | 2007-03-24 |
| | | | | | Charles Lecklider for pointing this out. (refs #3, merges [1442]) | ||
* | Reinitialise the OVERLAPPED structure each time we start a new overlapped | Chris Wilson | 2007-03-24 |
| | | | | | | read. Thanks to Charles Lecklider for pointing this out. (refs #3, merges part of [1458]) | ||
* | Move lib/common/ServerControl.h to lib/server where it belongs, since | Chris Wilson | 2007-03-22 |
| | | | | | it uses server functions (WinNamedPipeStream on win32) (refs #3) | ||
* | Log at trace level by default in debug builds (refs #3) | Chris Wilson | 2007-03-22 |
| | |||
* | Catch exceptions thrown by closing the WinNamedPipeStream during shutdown | Chris Wilson | 2007-03-10 |
| | | | | | and suppress them. (refs #3, merges [1284]) | ||
* | Compile fix for RHEL4 ([NICK]) (refs #3) | Chris Wilson | 2007-01-16 |
| | |||
* | Add option parsing with getopt() | Chris Wilson | 2007-01-15 |
| | | | | | | | | | | | Add "-D" flag as SINGLEPROCESS equivalent Add "-q" and "-v" options to control master logging level Log fatal errors as FATAL rather than ERROR Log daemon start and stop as NOTICE rather than INFO (refs #3) | ||
* | Spacing (refs #3) | Chris Wilson | 2007-01-14 |
| | |||
* | Convert Daemon class to new logging framework (refs #3) | Chris Wilson | 2007-01-12 |
| | |||
* | Add missing newlines to protocol logging to a file (refs #9) | Chris Wilson | 2006-11-26 |
| | |||
* | * Allow Daemons to be created more than once per process | Chris Wilson | 2006-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) | ||
* | Fixed typo (refs #3) | Chris Wilson | 2006-11-13 |
| | |||
* | Fix memory leak when TLSContext is reinitialised (refs #3) | Chris Wilson | 2006-11-13 |
| | |||
* | Reinstate ifdefs around code that should be disabled on Win32 (fake fork() | Chris Wilson | 2006-10-18 |
| | | | | | | | seems to be a bad idea). Comment spelling fixes. (refs #3) | ||
* | Update description with another possible cause of this error | Chris Wilson | 2006-10-18 |
| | |||
* | Use more accurate sleeps in poll() to ensure that we don't end up busy | Chris Wilson | 2006-10-16 |
| | | | | | | waiting for the last fraction of a second with repeated poll(..., 0). (refs #3) | ||
* | Use -1 for INVALID_SOCKET_HANDLE to ensure that it's always less than zero, | Chris Wilson | 2006-10-16 |
| | | | | | | | | so that non-conditional code in SocketStream.cpp works properly. Add a method to determine if a socket stream has been attached to a socket yet. (refs #3) | ||
* | Implement LocalProcessStream on Win32. (refs #3) | Chris Wilson | 2006-10-16 |
| | |||
* | Use overlapped I/O to avoid blocking. | Chris Wilson | 2006-10-16 |
| | | | | | | Use INVALID_HANDLE_VALUE instead of NULL everywhere to avoid bugs, and for type safety. (refs #3) | ||
* | Use BoxPlatform to see if we are building on Windows (refs #3) | Chris Wilson | 2006-10-14 |
| | |||
* | (refs #3) | Chris Wilson | 2006-08-31 |
| | | | | | Added support for non-blocking sockets on Win32 as well | ||
* | Revert to trunk | Chris Wilson | 2006-08-31 |
| | |||
* | Use INVALID_SOCKET_VALUE instead of -1 | Chris Wilson | 2006-08-31 |
| | |||
* | Revert to trunk | Chris Wilson | 2006-08-31 |
| | |||
* | (refs #3) | Chris Wilson | 2006-08-31 |
| | | | | | | Define a suitable constant for invalid socket handles, for use in SocketStream.cpp | ||
* | Revert to trunk | Chris Wilson | 2006-08-31 |
| | |||
* | (refs #3) | Chris Wilson | 2006-08-31 |
| | | | | | | | | Added an OnIdle method which can be overridden by subclasses for idle tasks. Used for housekeeping on Win32. Avoid forking on Win32, and trying to clean up after children. |