bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] problem with sys_drain_input_pipe() removal


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] problem with sys_drain_input_pipe() removal
Date: Mon, 29 Dec 2008 16:57:55 +0200

Mike Frysinger <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]