Fixed wait-until-fd-usable: not using the event loop but calling poll() with a single fd.