The struct field `no_stdin` is always false, since it's never
initialized and only eventually reset to false when the whole
`pager_process` is reset to 0 with a `memset` call.
Since pager is supposed to read from stdin, this feature is not needed.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
struct sigaction orig_sigterm;
struct sigaction orig_sigquit;
struct sigaction orig_sigpipe;
-
- bool no_stdin;
};
static struct child_process pager_process;
* In case of errors we must keep the promise to close FD
* that has been passed in via ->in.
*/
- need_in = !cmd->no_stdin && cmd->in < 0;
+ need_in = cmd->in < 0;
if (need_in) {
if (pipe(fdin) < 0)
return -1;