> The other issue is that several important applications (including the X
That would work yes. Switching to poll() would probably be even smarter,
or if you have a large number of fds being scanned take a look at epoll
which is likely to be far more efficient but wouldn't be available on so
many systems - poll is at least standard.
--