Re: [PATCH v2] git daemon: avoid waking up too often
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Jul 23, 2008, 06:51 UTC
- Message-ID
- <4886D503.7030106@viscovery.net>
- In-Reply-To
- <alpine.DEB.1.00.0807222302440.8986@racer>
Johannes Schindelin schrieb:
Show 6 quoted lines
> To avoid waking up unnecessarily, a pipe is set up that is only ever > written to by child_handler(), when a child disconnects, as suggested > per Junio. > > This avoids waking up the main process every second to see if a child > was disconnected.
This makes porting this beast to Windows practically impossible because we cannot have a poll() implementation that waits both on a listening socket and a pipe. :-(
-- Hannes