On 2023-07-15 18:02, наб wrote: > Hi! > > On Sat, Jul 15, 2023 at 05:11:37PM +0200, Alejandro Colomar wrote: >> On 2023-07-09 21:45, наб wrote: >>> Which don't behave like you may expect them to. >> What is the way that you expected or might have expected, >> and how does this differ? I'm curious. > By natural extension of either: > files (being a filesystem object), always returning 0 if no data, or > sockets (being an IPC mechanism), always EAGAINing if no data. > > The pipe semantics make /sense/ of course, but they aren't > The First Obvious Thing, because they're unique among the inode types; > in many ways you can model pipes under this model as being > files if writers vs sockets if none, but, well. Ahh, now it makes sense to me :). I think it would be interesting to expand the sentence in the commit message to mention the difference the you showed here. That might be useful for someone at some point in time, hopefully. Cheers, Alex > > Best, -- <http://www.alejandro-colomar.es/> GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature