wait complaining if the error is still EINPROGRESS