[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UNIX Internals: How does UNIX play with FIFOs ?



Gustavo Vieira Gonçalves Coelho Rios wrote:
> 
> Hi folks!
> 
> I have a question related to I/O on named piped (FIFOs):
> 
> Let's suppose the following scenario:
> 
> Process A feeds process B using a pipe ( A | B ).
> Just before starting writing STDOUT a forks n childs and none of a
> childs forks another process. Then all A's child starting feeding B the
> "same" time their parent (i.e: process A)
> 
> When the last feeder process (A and all of its child) finish, the
> process B will read EOF!


By reading EOF i mean having read returned 0!