Re: [PATCH v2] pipe.7: document read()s with O_NONBLOCK

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

 



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.

Best,

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux