[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 5.0 regression: Script stuck when waiting in trap
From: |
Robert Elz |
Subject: |
Re: 5.0 regression: Script stuck when waiting in trap |
Date: |
Thu, 06 Jun 2019 20:12:45 +0700 |
Date: Thu, 6 Jun 2019 09:57:24 +0200
From: mwnx <mwnx@gmx.com>
Message-ID: <20190606075724.GA9670@noisy>
| After all, it does wait for all other
| kinds of processes irrespective of when they were started or how
| many there are,
Shells aren't required to keep track of any process that the script
doesn't bother to track. Many do, but it isn't required. If you
want to know when a process ends, you need to save its PID when it
is created (ie: reference $! - save it in some variable). Once you've
done that, the shell is supposed to track it, and "wait" should include
that process.
Whether bash works that way with processes created for process substitutions
(which are a non-standard thing to do) I don't know however.
kre
- 5.0 regression: Script stuck when waiting in trap, mwnx, 2019/06/02
- Re: 5.0 regression: Script stuck when waiting in trap, Chet Ramey, 2019/06/03
- Re: 5.0 regression: Script stuck when waiting in trap, mwnx, 2019/06/04
- Re: 5.0 regression: Script stuck when waiting in trap, Chet Ramey, 2019/06/04
- Re: 5.0 regression: Script stuck when waiting in trap, mwnx, 2019/06/06
- Re: 5.0 regression: Script stuck when waiting in trap, Chet Ramey, 2019/06/06
- Re: 5.0 regression: Script stuck when waiting in trap, mwnx, 2019/06/09
- Re: 5.0 regression: Script stuck when waiting in trap, Chet Ramey, 2019/06/10
- Re: 5.0 regression: Script stuck when waiting in trap,
Robert Elz <=
- Re: 5.0 regression: Script stuck when waiting in trap, Chet Ramey, 2019/06/06
- Re: 5.0 regression: Script stuck when waiting in trap, Chet Ramey, 2019/06/06