Add timeout (in milliseconds) argument to poll() with a default of zero to preserve old behavior.