Code

[PATCH] diff.c: clean temporary files
authorJunio C Hamano <junkio@cox.net>
Thu, 28 Apr 2005 17:13:01 +0000 (10:13 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 28 Apr 2005 17:13:01 +0000 (10:13 -0700)
commit532149d72735b4c5035f73abd06f3995c6303acf
treeef9b496c135a89bde7214517a8b5a02b3e796662
parent91a6eaa05da5627b1238b7168be1d8ae69516383
[PATCH] diff.c: clean temporary files

When diff-cache -p and friends are interrupted, they can leave
their temporary files behind.  Also when the external diff
program is killed instead of exiting (this usually happens when
piping the output to a pager, which can cause SIGPIPE when the
user quits viewing the diff early), they incorrectly died
without cleaning their temporary file.

This fixes these problems.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff.c