vfork() problems

Nicholas Clark nick at ccl4.org
Thu Oct 25 06:52:49 PDT 2001

On Thu, Oct 25, 2001 at 01:50:07PM +0200, Stefan Bellon wrote:
> The problem I'm facing now is the following: Everything seems to work
> ok, except the fact that when reading back from the pipe in the "parent
> process" when the child has terminated, the "parent process" not only
> sees what the child has written into the pipe, but also what itself has
> written into the pipe before vforking.
> This isn't what I expected. Any ideas?

Use two pipes, one for each direction?

Nicholas Clark

More information about the gcc mailing list