On linux res is 0 but errno is set… #hashtagyoloerrno.