simple select() to poll() conversion; reviewed by millert and doug