pipe select() behavior

Tom Riddle (ftr@oracom.com)
Thu, 14 Aug 1997 15:44:48 -0400


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 ?

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).

-- 

Tom Riddle

Oracom, Inc. http://www.oracom.com

Tel. +1 508.557.5710 Fax +1 508.557.5716