Merge "replace dup() with fcntl(F_DUPFD_CLOEXEC)"