summaryrefslogtreecommitdiff
path: root/run-command.h
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-03-12 14:37:45 -0400
committerJunio C Hamano <junkio@cox.net>2007-03-12 23:40:17 -0700
commitf4bba25bdc0ecb4ac338de81a2a65af487701833 (patch)
treec589a5069a36db7941e3b3648a8e3dbb4978a914 /run-command.h
parent27ebd6e0443bdd795869f598ecebc9eadd64a26c (diff)
downloadgit-f4bba25bdc0ecb4ac338de81a2a65af487701833.tar.gz
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 <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'run-command.h')
-rw-r--r--run-command.h2
1 files changed, 2 insertions, 0 deletions
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;