Minor movement of poll() call into critical section