Add missing signal_pipe[0] to fdsr for the non-pty case.

This commit is contained in:
Todd C. Miller
2010-10-01 12:03:47 -04:00
parent d93df4e878
commit 413b7b55d1

View 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);