Searched refs:dupfd (Results 1 – 1 of 1) sorted by relevance
231 int nullfd, dupfd; in sanitise_stdfd() local233 if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) { in sanitise_stdfd()237 while (++dupfd <= 2) { in sanitise_stdfd()239 if (fcntl(dupfd, F_GETFL, 0) >= 0) in sanitise_stdfd()241 if (dup2(nullfd, dupfd) == -1) { in sanitise_stdfd()