FIFOs break tar, others

Leslie Mikesell les at chinet.UUCP
Sat Mar 19 05:54:32 AEST 1988


>>
>>tar, unfortunately, cannot be told to ignore or to properly "copy" FIFOs.
>>-- 
>
>Another version of tar which I've seen doesn't do a 'stat' first, but
>does an open.  On this version I added the O_NDELAY flag and put in
>similar code.
>
Don't forget that reading from a FIFO deletes the data.  Thus if you let
tar or cpio read them, some other process is going to lose its input.
Note also that the blocking effect only happens when no process has the
FIFO open for write access.  If there is an active process reading the
FIFO (the typical use being to communicate with some background server
process), the blocking can be avoided by having that process open the
FIFO read/write even though it only intends to read. (Of course its own
reads become non-blocking also..).

  Les Mikesell



More information about the Comp.unix.microport mailing list