Who should close the file descriptor?

Eric Ho ce3wa3bh at maccs.dcss.mcmaster.ca
Fri Feb 22 20:12:31 AEST 1991


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 at mcmaster.bitnet
Eric Ho					       ce3wa3bh at maccs.dcss.mcmaster.ca
McMaster University, Ontario, Canada        ...uunet!utai!utgpu!maccs!ce3wa3bh




More information about the Comp.lang.c mailing list