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

Re: [PATCH] git-daemon: Simplify child management and associated logging by

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 12, 2008, 22:05 UTC
Message-ID
<7vzlnhq48b.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080812212534.6871.19377.stgit@aristoteles.cuci.nl>
"Stephen R. van den Berg" <srb@cuci.nl> writes:
Show 10 quoted lines
> making the signal handler almost a no-op.
> Fix the killing code to actually be smart instead of the
> pseudo-random mess.
> Get rid of the silly fixed array of children and make
> max-connections dynamic and configurable in the process.
> Make git-daemon a proper syslogging citizen with PID-info.
> Simplify the overzealous double buffering in the logroutine,
> remove the artificial maximum logline length in the process.
>
> Signed-off-by: Stephen R. van den Berg <srb@cuci.nl>
Sorry, but this does too many things in one patch.
 - Taking advantage of poll() getting interrupted by SIGCHLD, so that you
   do not have to do anything in the signal handler, is so obvious that I
   am actually ashamed of not having to think of it the last time we
   touched this code.  Is there a poll() that does not return EINTR but
   just call the handler and restart after that as if nothing has
   happened, I have to wonder...
 - Conversion from silly fixed array to dynamic and configurable maximum
   would be a good idea, but that is independent from the above, isn't it?
 - I see you have a call to vsyslog, which is the first user of the
   function.  How portable is it (the patch coming from you, I know
   Solaris would have it, and recent 4BSD also would, but what about the
   others)?
Previous: Stephen R. van den BergNext: Stephen R. van den Berg
Message 3 of 17 in “git-daemon: SysV needs the signal handler reinstated.”
  1. git-daemon: SysV needs the signal handler reinstated.Stephen R. van den Berg, Aug 12, 2008
  2. git-daemon: Simplify child management and associated logging byStephen R. van den Berg, Aug 12, 2008
  3. Junio C HamanoAug 12, 2008
  4. Stephen R. van den BergAug 12, 2008
  5. git-daemon: Simplify child management and associated logging byStephen R. van den Berg, Aug 12, 2008
  6. git-daemon: Simplify child management and associated logging byStephen R. van den Berg, Aug 13, 2008
  7. Marcus GriepAug 13, 2008
  8. Junio C HamanoAug 13, 2008
  9. Stephen R. van den BergAug 13, 2008
  10. Stephen R. van den BergAug 13, 2008
  11. Junio C HamanoAug 13, 2008
  12. Alex RiesenAug 12, 2008
  13. Stephen R. van den BergAug 12, 2008
  14. Alex RiesenAug 13, 2008
  15. Stephen R. van den BergAug 13, 2008
  16. Andreas EricssonAug 13, 2008
  17. Alex RiesenAug 13, 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.