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: Koichi Murase
Subject: Re: [PATCH] Fix blocking read timeouts at a small probability
Date: Fri, 12 Feb 2021 14:51:03 +0800

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. As I have already written, as far as the probability is
non-zero, I'm afraid of a situation that another unexpected usage
might cause another relatively large failure rate... Besides, I'm
actually afraid of problems with very small probability more than the
ones with a large probability because they are hard to debug.

--
Koichi



reply via email to

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