bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix blocking read timeouts at a small probability


From: Chet Ramey
Subject: Re: [PATCH] Fix blocking read timeouts at a small probability
Date: Fri, 12 Feb 2021 09:56:55 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 2/12/21 1:51 AM, Koichi Murase wrote:
2021年2月12日(金) 4:27 Chet Ramey <chet.ramey@case.edu>:
Thank you. Yes, if there is a simpler but still robust and reliable
way to do it, that would be nice.

There is, in fact, a simpler way for this case. Blocking SIGCHLD around the
calls to zread and its siblings fixes the problem. It might not be enough
of a general solution for you, though.

Thank you for the fix. Now I see why this particular form (CMD & read
-t) < XXX caused a significantly large timeout-failure rate. But, I
guess the failure rate is almost zero but not exactly zero even after
this fix.

I can't reproduce the failure at all with the sigprocmask changes I added.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]