]> git.ipfire.org Git - thirdparty/git.git/commit - run-command.c
Simplify closing two fds at once in run-command.c
authorShawn O. Pearce <spearce@spearce.org>
Mon, 12 Mar 2007 18:37:28 +0000 (14:37 -0400)
committerJunio C Hamano <junkio@cox.net>
Mon, 12 Mar 2007 23:31:35 +0000 (16:31 -0700)
commit9dc09c766463333ca51311a2db86fd67f4fec19b
tree80b28324813c28d2dfdbfa89904937423cb96851
parent1358e7d670306a9fe8a612f1ebd1f058474d20af
Simplify closing two fds at once in run-command.c

I started hacking on a change to add stdout redirection support to
the run_command family, but found I was using a lot of close calls
on two pipes in an array (such as for pipe).  So I'm doing a tiny
bit of refactoring first to make the next set of changes clearer.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
run-command.c