bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Examples of concurrent coproc usage?


From: Chet Ramey
Subject: Re: Examples of concurrent coproc usage?
Date: Wed, 3 Apr 2024 09:54:58 -0400
User-agent: Mozilla Thunderbird

On 4/2/24 12:22 PM, Carl Edquist wrote:

This seems like it would be pretty easy to fix if a coproc closed the fds corresponding to an existing coproc in the child after the fork

the forked coproc has to close its fds to/from _all_ other existing coprocs (as there can be several).

And there is the issue. Without multi-coproc support, the shell only keeps
track of one coproc at a time, so there's only one set of pipe file
descriptors to close.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]