diff: fix textconv error zombies
authorJohannes Sixt <j6t@kdbg.org>
Tue, 30 Mar 2010 17:36:03 +0000 (19:36 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Mar 2010 21:46:33 +0000 (14:46 -0700)
To make the code simpler, run_textconv lumps all of its
error checking into one conditional. However, the
short-circuit means that an error in reading will prevent us
from calling finish_command, leaving a zombie child.
Clean up properly after errors.

Based-on-work-by: Jeff King <peff@peff.net>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found