]> granicus.if.org Git - sudo/commitdiff
Add missing signal_pipe[0] to fdsr for the non-pty case.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 1 Oct 2010 16:03:47 +0000 (12:03 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 1 Oct 2010 16:03:47 +0000 (12:03 -0400)
src/exec.c

index a000e5ac04eb65e606f8a93daf338c2a243cd00f..09e58dc42ba504fcbf7e946535ac48956e09efa2 100644 (file)
@@ -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);