bug-bash
[Top][All Lists]
Advanced

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

Re: `wait -n` returns 127 when it shouldn't


From: Oğuz İsmail Uysal
Subject: Re: `wait -n` returns 127 when it shouldn't
Date: Wed, 17 May 2023 18:52:45 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

On 5/17/23 3:27 PM, Martin D Kealey wrote:

On Wed, 17 May 2023 at 20:20, Oğuz İsmail Uysal <oguzismailuysal@gmail.com> wrote:

    On 5/16/23 8:35 PM, Aleksey Covacevice wrote:

[original code elided as it's been mangled by line-wrapping]

    This boils down to the following

         true &
         false &
         wait -n


With respect, I disagree with that statement of equivalence.

The only way for the loop to terminate is when `wait` returns 127, after both children have been reaped. By when the non-zero exit status of "false" will have been noted, and then used as the return value of the function.
Must have misread then, thanks



reply via email to

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