bug-coreutils
[Top][All Lists]
Advanced

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

bug#9089: pipe failure with cat and head of coreutils 6.12


From: Philipp Thomas
Subject: bug#9089: pipe failure with cat and head of coreutils 6.12
Date: Fri, 15 Jul 2011 17:02:38 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

* Pádraig Brady (address@hidden) [20110715 16:20]:

> Note the reason ksh does this, is to allow commands
> to efficiently inspect the input, rather than reading byte by byte.
> This is related to the recent `stdbuf -i0` discussions.

And that noticeable speedup is one of ksh's main advantages, at least
according to our ksh maintainer.

> Note it seems to be timing dependent whether ECONNRESET or EPIPE is returned.
> To get ECONNRESET reliably I need to:
> 
> ksh -c "strace yes | (sleep 1; head -n10) > /dev/null"

As far as I've come in tracing the failure is in gnulibs full_write and
neither simple_cat nor full_write seem to have any handling for either error
code.

Philipp





reply via email to

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