From: Andreas Ericsson Date: Wed, 13 Aug 2008 06:41:53 GMT Subject: Re: [PATCH] git-daemon: Simplify child management and associated logging by Message-ID: <48A28231.6090105@op5.se> In-Reply-To: <20080812212534.6871.19377.stgit@aristoteles.cuci.nl> Stephen R. van den Berg wrote: > + /* 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