Fix poll() returning instantly