[zfec] #14: [patch] Make streaming from stdin / to stdout work.

Daira Hopwood daira at jacaranda.org
Mon Mar 2 21:11:17 UTC 2015


On 02/03/15 19:21, Eric Pollmann wrote:
> Thanks for the improvement! I just simplified the patches to use args.inputfile == '-'
> which implements exactly what the documentation says.

That has a type error; args.inputfile is a file object, not a string.

How that I think about it, the behaviour should be the same for all non-seekable
files, which includes devices. A non-seekable file will give errno.ESPIPE (on Unix)
or errno.EBADF (on Windows) from the attempt to seek.

-- 
Daira Hopwood ⚥

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://tahoe-lafs.org/pipermail/tahoe-dev/attachments/20150302/f982aa1b/attachment-0001.pgp>


More information about the tahoe-dev mailing list