DUP2 fd fix for Posix