bug-bash
[Top][All Lists]
Advanced

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

Re: waiting for process substitutions


From: Zachary Santer
Subject: Re: waiting for process substitutions
Date: Wed, 7 Aug 2024 12:03:21 -0400

On Wed, Aug 7, 2024 at 10:27 AM Chet Ramey <chet.ramey@case.edu> wrote:
>
> On 8/5/24 11:00 PM, Zachary Santer wrote:
> > On Mon, Aug 5, 2024 at 5:10 PM Chet Ramey <chet.ramey@case.edu> wrote:
> >>
> >> But in the end, if you're waiting for a process that isn't going to
> >> terminate, you're going to be waiting for a long time.
> >
> > So, even with wait without id arguments restricted to the final
> > procsub, if its process id is the same as $!, it's still trivial to
> > create a scenario where the call to wait will hang. Given that, I
> > don't see the benefit over simply waiting for all process
> > substitutions.
>
> It's trivial to do a lot of things that may cause the shell to hang
> besides trying to wait for a process that will never terminate. What
> should the shell do about those?

Probably nothing. What's the purpose of 'wait' without id arguments
being restricted to the final procsub, then? It sounds like the
various issues revealed by Oğuz's October 2022 bug report were
resolved by making other changes.



reply via email to

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