On 8/5/24 11:00 PM, Zachary Santer wrote:
On Mon, Aug 5, 2024 at 5:10 PM Chet Ramey <chet.ra...@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 c...@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature