On 4/12/19 4:28 PM, Daniel Kahn Gillmor wrote: > None of the other bourne-derived shells that i have tried have a builtin > wait that waits on child processes that they didn't directly create. > It's odd that bash 5.0 does this. I don't have any objection to the > wait builtin waiting on coprocesses or on process substitutions that it > knows about.
It's an easy change. See the attachment.
I agree that the negative side effects outweigh the requests to have the
shell `fully clean up after itself'.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/
*** ../bash-5.0-patched/jobs.c 2018-12-06 11:44:34.000000000 -0500
--- jobs.c 2019-04-12 15:15:10.000000000 -0400
***************
*** 2489,2496 ****
wait_procsubs ();
reap_procsubs ();
! #if 1
/* We don't want to wait indefinitely if we have stopped children. */
- /* XXX - should add a loop that goes through the list of process
- substitutions and waits for each proc in turn before this code. */
if (any_stopped == 0)
{
--- 2490,2495 ----
wait_procsubs ();
reap_procsubs ();
! #if 0
/* We don't want to wait indefinitely if we have stopped children. */
if (any_stopped == 0)
{
signature.asc
Description: OpenPGP digital signature
