Newsgroups: comp.lang.c Path: utzoo!censor!geac!maccs!ce3wa3bh From: ce3wa3bh@maccs.dcss.mcmaster.ca (Eric Ho) Subject: Who should close the file descriptor? Message-ID: <27C4E07F.6689@maccs.dcss.mcmaster.ca> Organization: McMaster University, Hamilton, Ontario, Canada Date: Fri, 22 Feb 91 09:12:31 GMT In my progam, two process are spawned, what this two processes doing is the parent process write a message to the pipe, and the child process read the message from the pipe. After the parent process finished writting, should I close the pipe write end file descriptor immediately, or leave this to the child. What's the difference between the parent close the write end file descriptor and the child close the write end descriptor? Please reply using e-mails, thanks in advance! -- Cheers, 9041477@mcmaster.bitnet Eric Ho ce3wa3bh@maccs.dcss.mcmaster.ca McMaster University, Ontario, Canada ...uunet!utai!utgpu!maccs!ce3wa3bh