[Top][All Lists]

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

Re: [patch]spawn-pipe.c / spawni.c compile on OpenVMS.

From: Bruno Haible
Subject: Re: [patch]spawn-pipe.c / spawni.c compile on OpenVMS.
Date: Tue, 04 Jul 2017 02:26:01 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-81-generic; KDE/5.18.0; x86_64; ; )

John E. Malmberg wrote:
> For Bash and Coreutils, I have a close to a pipe replacement that uses a 
> slightly different API in that you have to know if the pipe is parent to 
> child or child to parent when you create the pipes.  This handles pipes 
> up to the amount of virtual memory available to the process.

You mean, such an implementation will not be usable for the case when
  1. parent process calls pipe()
  2. parent process forks child process 1,
  3. parent process forks child process 2,
  4. parent closes its copies of the fds from the pipe() call
because in this case the communication happens between two sibling processes?

I agree that many uses of pipe() are for parent-child communication.
Does someone know how frequent the use of pipe() for sibling processes is?


reply via email to

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