_dup2 calls set errno