bug-bash
[Top][All Lists]
Advanced

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

Re: waiting for process substitutions


From: Chet Ramey
Subject: Re: waiting for process substitutions
Date: Wed, 7 Aug 2024 10:27:07 -0400
User-agent: Mozilla Thunderbird

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?

--
``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/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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