Re: Examples of concurrent coproc usage?

2024-04-03 Thread Chet Ramey
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

Re: Document ulimit's "unlimited" limit in manual page

2024-04-03 Thread Martin Guy
Il 03/04/24 15:10, Martin Guy ha scritto: The "unlimited" keyword is not mentioned in the manual page, and should be. Oops. Yes it is. Only dash lacks a mention of it. Sorry for the noise.     M OpenPGP_signature.asc Description: OpenPGP digital signature

Document ulimit's "unlimited" limit in manual page

2024-04-03 Thread Martin Guy
Hi.     ulimit -c unlimited The "unlimited" keyword is not mentioned in the manual page, and should be. (nor is it for dash(1) so it looks like someone copied some else's manual page!) With thanks     M OpenPGP_signature.asc Description: OpenPGP digital signature

Re: Examples of concurrent coproc usage?

2024-04-03 Thread Chet Ramey
On 3/14/24 5:58 AM, Carl Edquist wrote: HOWEVER!!! Unexpectedly, the new multi-coproc code seems to close the user shell's end of a coprocess's pipes, once the coprocess has terminated.  When compiled with MULTIPLE_COPROCS=1, this is true even if there is only a single coproc: $ coproc

Re: Examples of concurrent coproc usage?

2024-04-03 Thread Zachary Santer
On Wed, Apr 3, 2024 at 10:32 AM Chet Ramey wrote: > > How long should the shell defer deallocating the coproc after the process > terminates? What should it do to make sure that the variables don't hang > around with invalid file descriptors? Or should the user be responsible for > unsetting the a