Ludovic Courtès, le ven. 25 nov. 2022 12:35:58 +0100, a ecrit:
> Let’s assume you do this:
> 
>   mkfifo fifo
>   rpctrace cat fifo
> 
> I think there’s at least one bug here: ‘dir_lookup’ should complete
> immediately; it’s ‘io_read’ that should block.

? No. Open Group says about open():

          ○ If O_NONBLOCK is clear, an open() for reading-only shall block the
            calling thread until a thread opens the file for writing. An open()
            for writing-only shall block the calling thread until a thread
            opens the file for reading.

(and Linux does that indeed)

Samuel

Reply via email to