Mike Frysinger <[email protected]> ha escrit:

> the assumption made in the code is that if the decompressor exited with 
> SIGPIPE, it was due to the pipe between the compressor and tar.  where
> is this  guaranteed ?  what if a pipe is feeding the decompressor ?

SIGPIPE is delivered to a process if it attempts to *write* to a pipe 
whose read end is closed. The read end of the pipe is the tar's end.
So, it is guaranteed that if the process got SIGPIPE it is because tar
has closed its end.

Regards,
Sergey




Reply via email to