From: Todd C. Miller Date: Fri, 1 Oct 2010 16:03:47 +0000 (-0400) Subject: Add missing signal_pipe[0] to fdsr for the non-pty case. X-Git-Tag: SUDO_1_8_0~221 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=413b7b55d108d048670ce0ac314ded123a370a5c;p=sudo Add missing signal_pipe[0] to fdsr for the non-pty case. --- diff --git a/src/exec.c b/src/exec.c index a000e5ac0..09e58dc42 100644 --- a/src/exec.c +++ b/src/exec.c @@ -246,6 +246,7 @@ sudo_execve(struct command_details *details, char *argv[], char *envp[], zero_bytes(fdsw, howmany(maxfd + 1, NFDBITS) * sizeof(fd_mask)); zero_bytes(fdsr, howmany(maxfd + 1, NFDBITS) * sizeof(fd_mask)); + FD_SET(signal_pipe[0], fdsr); FD_SET(sv[0], fdsr); if (!tq_empty(&sigfwd_list)) FD_SET(sv[0], fdsw);