end of file characters and open file descriptors

Wonderly gregg at ihlpb.ATT.COM
Sat Dec 31 05:49:46 AEST 1988


>From article <8629 at alice.UUCP>, by ark at alice.UUCP (Andrew Koenig):
> 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
> -> 
> 
> Sorry, but it's completely impossible in most systems.

True, EOF on a pipe only happens when all read fd's are closed...

An alternative is to send a signal from A to B, interupting the read.
This is not a pretty solution at all, but does provide the necessary
functionality.

-- 
It isn't the DREAM that NASA's missing...  DOMAIN: gregg at ihlpb.att.com
It's a direction!                          UUCP:   att!ihlpb!gregg



More information about the Comp.unix.questions mailing list