home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: johnl@iecc.cambridge.ma.us (John R. Levine)
-
- >Of course, the irony of this is that SVR4 supports select as well as
- >poll, so it is tempting to consider select the more portable of the
- >two despite its problems.
-
- Perhaps, but the SVR4 implementation of select is just a wrapper around a
- call to poll. I'd be inclined to favor poll as being better defined with
- a note that you can still wrap select around it for the benefit of
- oldthinkers.
-
- One annoyance with the SysV implementation of poll and select is that it
- doesn't work on every possible file descriptor, and it's hard to predict
- on exactly which files it will work. It always works on streams files
- which include terminals, pipes, and network connections. It'll work on
- other character special files if the driver provides a poll handling
- routine. I've never seen a non-streams driver in SVR4 which had one, but
- the non-streams character drivers in SVR4 are things like /dev/kmem that
- are not prime candidates for polling. Poll never works on block devices.
- People seem to find the SVR4 implementation of select adequate, so it
- appears that the things that poll doesn't do aren't things that anyone
- expected select to do, either.
-
- But it's not clear to me that a definition of select or poll that had to
- involve hand waving about what files you can poll would be worth putting
- into Posix. Maybe we could limit it to terminals, network connections,
- and pipes, but then you get into questions like whether an NFS mounted
- file system is considered a network connection, and why not.
-
- Regards,
- John Levine, johnl@iecc.cambridge.ma.us, {spdcc|ima|world}!iecc!johnl
-
-
- Volume-Number: Volume 28, Number 57
-
-