Re: [PATCH] git-daemon: Simplify child management and associated logging by
- From
Andreas Ericsson <ae@op5.se>
- Date
- Aug 13, 2008, 06:41 UTC
- Message-ID
- <48A28231.6090105@op5.se>
- In-Reply-To
- <20080812212534.6871.19377.stgit@aristoteles.cuci.nl>
Stephen R. van den Berg wrote:
Show 6 quoted lines
> + /* Since stderr is set to linebuffered mode, the
> + * logging of different processes will not overlap
> + */
> + fprintf(stderr, "[%d] ", (int)getpid());
> + vfprintf(stderr, err, params);
> + fputc('\n', stderr);stderr is unbuffered. It's stdout that is linebuffered.
-- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231