Re: pipe select() behavior

Andries.Brouwer@cwi.nl
Thu, 14 Aug 1997 22:28:01 +0200 (MET DST)


Tom Riddle:

: What is the rationale for having select() fail/block for writing
: on a non-empty pipe ? Why not block when full ? Is this behavior
: dictated by POSIX ?

select() is not in POSIX.1.

: I am running 2.0.29. The relevant code lives in fs/pipe.c in the
: function pipe_select(). Compare the SEL_OUT case with the version
: that appears below in fifo_select() (which only appears if you define
: FIFO_SUNOS_BRAINDAMAGE).