Searched refs:fd_null (Results 1 – 1 of 1) sorted by relevance
1905 int fd_null = open(_PATH_DEVNULL, O_WRONLY); in dup_null() local1908 if (fd_null == -1) { in dup_null()1913 if ((err = dup2(fd_null, fd)) == -1) in dup_null()1915 close(fd_null); in dup_null()