Path: utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: carroll@cs.uiuc.edu (Alan M. Carroll) Newsgroups: comp.sys.sun Subject: accept(), listen(), and poll(): SunOS 4.0 Keywords: SunOS Message-ID: <651@brchh104.bnr.ca> Date: 8 Dec 90 00:52:00 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 11 Approved: Sun-Spots@rice.edu X-Original-Date: Mon, 3 Dec 90 16:24:25 GMT X-Sun-Spots-Digest: Volume 9, Issue 392, message 4 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu I'm trying to use poll() on SunOS with a socket that is listen()'ing. poll() consistently returns immediately with POLLNVAL set in revents. TFM says that one can select() on a listen()'ing socket (and I can get that to work), but doesn't mention poll(). Does poll() not work on such sockets on SunOS 4.0? P.S. I just tested this on a 4.1 machine, and it seems to work there. Alan M. Carroll "It's psychosomatic. You need a lobotomy, Epoch Development Team I'll get a saw." CS Grad / U of Ill @ Urbana ...{ucbvax,pur-ee,convex}!cs.uiuc.edu!carroll