[comp.sys.sun] Socket select

chris@com2serv.c2s.mn.org (Chris Johnson) (02/10/90)

I was trying to do a little synchronous multiplexing of some stream
sockets under SunOS 3.5 using the select() command.  From the manual pages
and the Berkeley IPC documents, it seemed obvious that select() would only
return an indication that a particular socket was ready to be read when I
could actually do a successful read() from it.

Instead, select() seems to return sockets that cause my read() to block,
because they are empty (their internal TPC state is marked as
established).

Is SunOS broken, or is this how it is supposed to work?  What happens on a
real Berkeley 4.2 or 4.3 system?

Thanks.
Chris Johnson                  DOMAIN:  chris@c2s.mn.org
Com Squared Systems, Inc.         ATT:  +1 612 452 9522
Mendota Heights, MN  USA          FAX:  +1 612 452 3607