From 73d1dfb096a74a219229a76f3714e4746b21de60 Mon Sep 17 00:00:00 2001 From: David Caldwell Date: Fri, 19 Mar 2010 03:41:21 -0700 Subject: [PATCH] [commit-patch] clean() doesn't exist any more; don't die on C-c. END always gets run, even when we exit via signals and we have a handler. --- commit-patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commit-patch b/commit-patch index 148b17d..8e435da 100755 --- a/commit-patch +++ b/commit-patch @@ -212,7 +212,7 @@ for my $f (@files) { run ["cp", "-f", $f, "$f.orig.$$"] or die "couldn't make backup of $f: $!" if -f $f; $clean{"$f.orig.$$"} = $f; } -$SIG{PIPE} = $SIG{INT} = $SIG{QUIT} = sub { clean(); print "Cleanly aborted\n"; }; +$SIG{PIPE} = $SIG{INT} = $SIG{QUIT} = sub { print "Cleanly aborting..\n"; }; $clean{"working.patch.$$"} = $clean{"non_committed.patch.$$"} = undef; -- 2.51.2