From f4bba25bdc0ecb4ac338de81a2a65af487701833 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Mon, 12 Mar 2007 14:37:45 -0400 Subject: Teach run-command about stdout redirection Some potential callers of the run_command family of functions need to control not only the stdin redirection of the child, but also the stdout redirection of the child. This can now be setup much like the already existing stdin redirection. Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- run-command.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'run-command.h') diff --git a/run-command.h b/run-command.h index ff090679a6..1c9126b875 100644 --- a/run-command.h +++ b/run-command.h @@ -15,7 +15,9 @@ struct child_process { const char **argv; pid_t pid; int in; + int out; unsigned close_in:1; + unsigned close_out:1; unsigned no_stdin:1; unsigned git_cmd:1; /* if this is to be git sub-command */ unsigned stdout_to_stderr:1; -- cgit v1.2.1