[tor-commits] [tor/master] Use errno directly if we are not reading/writing from/to a socket.