Re: [PATCH] git-daemon: fix for rotating logs
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- May 11, 2008, 18:03 UTC
- Message-ID
- <alpine.DEB.1.00.0805111901390.30431@racer>
- In-Reply-To
- <alpine.DEB.1.00.0804281523040.5399@eeepc-johanness>
Hi,
On Mon, 28 Apr 2008, Johannes Schindelin wrote:
> With rotating logs, there is a problem when the syslog is opened only > once (in the beginning). So open the log everytime we write something, > and close it directly after writing.
Actually, the culprit were _not_ rotating logs. At least not really. syslog() is not supposed to be called from a signal handler. In git-daemon, it is, from child_handler(), but only when called with --verbose (and --syslog, or --detach). Bummer.
Sorry for my wrong analysis, Dscho