git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 6 in “git daemon: avoid waking up too often”
  1. git daemon: avoid waking up too oftenJohannes Schindelin, Jul 22, 2008
  2. git daemon: avoid waking up too oftenJohannes Schindelin, Jul 22, 2008
  3. Johannes SixtJul 23, 2008
  4. Johannes SchindelinJul 23, 2008
  5. Avery PennarunJul 23, 2008
  6. Johannes SchindelinJul 23, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.