571
571
return sudo_debug_fd;
575
* Setter for the debug descriptor.
578
sudo_debug_fd_set(int fd)
580
if (sudo_debug_fd != -1 && fd != sudo_debug_fd) {
581
if (dup2(sudo_debug_fd, fd) == -1)
583
(void)fcntl(fd, F_SETFD, FD_CLOEXEC);
584
close(sudo_debug_fd);
587
return sudo_debug_fd;