[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: |
Mon, 5 Aug 2024 23:00:57 -0400 |
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.
> So in your example, the redirection sets $! (or its internal equivalent)
> to the pid of the procsub, and wait -n waits for it. These operations are
> performed by the same shell process.
- Re: waiting for process substitutions, Chet Ramey, 2024/08/05
- Re: waiting for process substitutions, Zachary Santer, 2024/08/05
- Re: waiting for process substitutions, Chet Ramey, 2024/08/05
- Re: waiting for process substitutions,
Zachary Santer <=
- Re: waiting for process substitutions, Oğuz, 2024/08/06
- Re: waiting for process substitutions, alex xmb sw ratchev, 2024/08/06
- Re: waiting for process substitutions, Zachary Santer, 2024/08/06
- Re: waiting for process substitutions, alex xmb sw ratchev, 2024/08/06
- Re: waiting for process substitutions, Oğuz, 2024/08/06
- Re: waiting for process substitutions, Zachary Santer, 2024/08/06
- Re: waiting for process substitutions, Oğuz, 2024/08/06
- Re: waiting for process substitutions, Zachary Santer, 2024/08/06
- Re: waiting for process substitutions, Oğuz, 2024/08/06
- Re: waiting for process substitutions, Zachary Santer, 2024/08/06