Merge "Fix dup2 in the case where the two fds are equal."