From: Wm E. Davidsen Jr (davidsen@sixhub.UUCP)
Date: 08/08/93


From: davidsen@sixhub.UUCP (Wm E. Davidsen Jr)
Subject: Re: using FIFO's in Linux
Date: 9 Aug 1993 03:00:05 GMT

In article <23uhoj$8a0@ionews.io.org> las@io.org (Laszlo Herczeg) writes:

| Now, it does work, but only ONCE, so the process which has
| its stdin redirected to </dev/fifo exits with error level 0.
|
| Also the pair:
| cat whatever >/dev/fifo
| cat </dev/fifo >myfile
| works fine.
|
| My wish is to keep the collector process going indefinitely, possibly in the
| background.
| Anyone care to comment?

When the process writing the FIFO closes it the process reading the FIFO
get an EOF. That's the way it works in UNIX as far as I remember.

-- 
Bill Davidsen, davidsen%sixhub.uucp@uunet.uu.net
    TMR Associates, +1 518-370-5654
    C programming, training, data gathering, porting to open systems,
    heterogeneous environments, computer controlled housing, custom software