bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] Tar short read


From: Chuck Swiger
Subject: Re: [Bug-tar] Tar short read
Date: Tue, 27 Sep 2011 11:42:09 -0700

On Sep 27, 2011, at 11:35 AM, Andreas Dilger wrote:
>> SIGSTOP cannot be caught, blocked, or ignored.  It is used only by
>> debuggers.
> 
> Isn't it also used by Ctrl-Z in bash, and then "bg/fg" will send
> SIGCONT when it resumes.

Cntl-Z causes the shell to send SIGTSTP, not SIGSTOP.

> I'm on the side of Kevin, that it makes sense for tar to be robust
> in the face of a short read, despite what the spec might write.

And yes, I agree-- anything calling read() should pay attention to the return 
and deal with a shorter read than requested if it wants to be robust and widely 
portable.

Regards,
-- 
-Chuck




reply via email to

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