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

Re: [PATCH] daemon: consider only address in kill_some_child()

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 9, 2010, 17:20 UTC
Message-ID
<7vocl3ry9m.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1263046408-2368-1-git-send-email-kusmabite@gmail.com>
Erik Faye-Lund <kusmabite@googlemail.com> writes:
Show 12 quoted lines
> kill_some_child() compares the entire sockaddr_storage structure (with
> the pad-bits zeroed out) when trying to find out if connections
> originate from the same host.  However, sockaddr_storage contains the
> port-number for the connection (which varies between connections), so
> the comparison always fails.
>
> Change the code so we only consider the host-address, by introducing the
> addrcmp()-function that inspects the address family and compare as
> appropriate.
>
> Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
> ---
Makes sense.
Previous: Erik Faye-Lund
Message 2 of 2 in “daemon: consider only address in kill_some_child()”
  1. daemon: consider only address in kill_some_child()Erik Faye-Lund, Jan 9, 2010
  2. Junio C HamanoJan 9, 2010

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.