end of file characters and open file descriptors

Andrew Koenig ark at alice.UUCP
Fri Dec 30 11:56:31 AEST 1988


In article <1345 at cod.NOSC.MIL>, waagen at cod.NOSC.MIL (Don E. Waagen) writes:
-> 
->    I'm trying to have two processes communicate via a pipe (stdout), like 
-> 
-> 			A | B
-> 
-> but with a small difference.  Process A will never die (i.e. the connection 
-> will never be closed).  What I would like to do is have the fread and getchar()
-> calls of process B sense or think that it is seeing the pipe close (i.e. an EOF
-> character returned by the calls) without closing the connection.

Sorry, but it's completely impossible in most systems.
-- 
				--Andrew Koenig
				  ark at europa.att.com



More information about the Comp.unix.questions mailing list