errno corresponding to ERROR_NO_DATA should be EPIPE (non-threaded RTS)