the current pipe_poll() function seems to be wrong:
* always sets POLLIN, even if the pipe buffers are empty. FreeBSD only
sets POLLIN if the buffer is not empty.
* it might set both POLLHUP and POLLOUT at the same time. SUS says that
must not happen, but FreeBSD does that as well.
Is there a specification for poll()/select() on pipes and fifo's?
I've downloaded SUS, and the freebsd pipe code. Neither poll() nor
select() are part of POSIX.1
Is there any other important reference?
TIA,
Manfred
