Re: `wait` triggers an infinite loop when used in an EXIT trap
Chet Ramey <[email protected]>
| Newsgroups | gmane.comp.shells.bash.bugs |
|---|---|
| Organization | ITS, Case Western Reserve University |
| Message-ID | <[email protected]> |
On 1/5/26 2:54 PM, Robert Elz wrote: > Date: Mon, 5 Jan 2026 11:50:24 -0500 > From: Chet Ramey <[email protected]> > Message-ID: <[email protected]> > > | The child process, which has an active EXIT trap, has inherited the jobs > | array, > > That seems wrong to me - the jobs array (list of children) of the parent > cannot possibly be the list of children of the child after a fork. OK. POSIX requires it without any qualifying language. It might be interesting to see what the austin group has to say. -- ``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/
OpenPGP_signature.asc
(application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE----- wmMEABEIACMWIQR8ATX7CIqvbGbGULm7WGnwZOp0qwUCaVwc4gUDAAAAAAAKCRC7WGnwZOp0q0Lk AJ4xQw5mqM9ZBPRsYolKaLeq/k2nzACeJWzWod6edoPwXAzh5XyEwuZMlBY= =XhHZ -----END PGP SIGNATURE-----