bug#81060: tee: version 9.11: regression

Paul Eggert <[email protected]> Sun, 17 May 2026 00:04:28 -0700
Newsgroups gmane.comp.gnu.core-utils.bugs
Organization UCLA Computer Science Department
Message-ID <[email protected]>
On 2026-05-16 19:56, Collin Funk wrote:
> Is it possible/common for write to return zero bytes when the given size
> is greater than zero?

As I recall, it's not *supposed* to happen in current POSIX-conforming 
systems, but on some old platforms it can happen when you write to a 
nonblocking pipe with no readers (System V systems like Solaris have 
this behavior if you use O_NDELAY, the behavior of which differs from 
O_NONBLOCK on those platforms), or when writing to a buggy special 
device that is out of space or is temporarily refusing data, or if 
you've hit quota at about the same time the write is initiated on a file 
system where quotas are a bit buggy.