This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
RE: pipe() in glibc2.0.7
- To: glibc-linux at ricardo dot ecn dot wfu dot edu
- Subject: RE: pipe() in glibc2.0.7
- From: warder at pcisys dot net
- Date: Sun, 10 Oct 1999 18:31:28 -0500 (CDT)
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
Pipes do return an EOF when the write side of the pipe is closed by ALL
writers. Your problem is that you are not closing the write side of the pipe
in the reading process. It is also good practice to close the reading side of
the pipe in a process that only wites. Remember everything you had before you
fork() is reproduced in the child process.
HTH.
-Govind Salinas
If it jams, force it. If it breaks, it needed replacing anyway.
-Credo of technicians everywhere
ICQ:32026672 AIM:DyErthScum