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

Re: [Proposed Fix] daemon.c: not initializing revents

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 12, 2019, 02:59 UTC
Message-ID
<xmqqd0nxg1a1.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<003501d4c253$05f16fd0$11d44f70$@nexbridge.com>
"Randall S. Becker" <rsbecker@nexbridge.com> writes:
Show 8 quoted lines
>> In any case, no matter what POSIX says, if clearing .revents before
> calling
>> poll() helps on platforms in the real world, the patch is worth taking as
> a fix, I
>> would think.
>
> That's what my intent was - my explanations are suffering from a little
> work-induced sleep deprivation. Would you like this as a formal patch?
That depends ;-)

At this late in the cycle, I do not see much urgency for this patch to be in the upcoming release (after all, this code survived real world for quite a long time, so it's only minority platforms like NonStop that haven't seen serious porting effort until recently that would see improvement---and they have survived without reliably working daemon for so long that they can wait for one more release).

Now, the knowledge that we will have long enough time before the final version of the formal patch becomes necessary makes me wonder what the best use of that time to polish the patch would be. Ideally we'd like to see "this definitely fixed (or 'worked around') such and such breakages on platform X, Y and Z" instead of my "Well, we could read POSIX that way, so there may be some platforms that would require applications to do this, and an extra assignment here would certainly not hurt", which was the hand-waving I just did.

I dunno.
Previous: Randall S. BeckerNext: Randall S. Becker
Message 4 of 5 in “[Proposed Fix] daemon.c: not initializing revents”
  1. Randall S. BeckerFeb 9, 2019
  2. Junio C HamanoFeb 11, 2019
  3. Randall S. BeckerFeb 11, 2019
  4. Junio C HamanoFeb 12, 2019
  5. Randall S. BeckerFeb 12, 2019

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.