author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 12 Mar 2007 18:37:28 +0000 (14:37 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 12 Mar 2007 23:31:35 +0000 (16:31 -0700) | ||
commit | 9dc09c766463333ca51311a2db86fd67f4fec19b | |
tree | 80b28324813c28d2dfdbfa89904937423cb96851 | tree | snapshot |
parent | 1358e7d670306a9fe8a612f1ebd1f058474d20af | commit | diff |
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>
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 | diff | blob | history |