help-tar
[Top][All Lists]
Advanced

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

[Help-tar] Does GNU tar close its input pipe before seeing EOF on it?


From: Ersek, Laszlo
Subject: [Help-tar] Does GNU tar close its input pipe before seeing EOF on it?
Date: Mon, 1 Mar 2010 14:32:47 +0100 (CET)

Dear GNU tar Maintainer,

if you can find the time, please read the blog post [0] and the related (not too long) reddit thread [1]. The question is:

Does GNU tar (and if so, under what circumstances) close its input pipe before seeing EOF on it?

The input pipe in question can be under stdin, created by the shell, as in

$ filter -d <input | tar -x

or it can be created by tar itself, as in

$ tar --use=filter -x <input


The background point of interest is whether GNU tar can make the filter see a SIGPIPE / EPIPE by breaking its output pipe, even though GNU tar does not discover any problems with the tar stream it reads from the pipe (or with the filesystem it works with).


Thank you very much,
lacos

[0] http://blog.nelhage.com/archives/150
[1] 
http://www.reddit.com/r/programming/comments/b7djd/stuff_like_this_makes_me_hate_python_subtle_bugs




reply via email to

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