F_DUPFD_CLOEXEC_MAYBE
fd2 = fcntl(fd, F_DUPFD_CLOEXEC_MAYBE, 10);
(ttyfd = fcntl(i, F_DUPFD_CLOEXEC_MAYBE, 10)) < 0) {
if ((i = fcntl(ttyfd, F_DUPFD_CLOEXEC_MAYBE, 10)) < 0) {
if ((i = fcntl(fd, F_DUPFD_CLOEXEC_MAYBE, 10)) == -1) {