Fixed up the synchronous i/o multiplexing functions.