changeset 665:40fd5722c669

hgeditor: Remove temporary files even if interrupted # HG changeset patch # User Radoslaw "AstralStorm" Szkodzinski <astralstorm@gorzow.mm.pl> # Node ID 1292f1fd015767d9682ba2ff5f8377fb6760c3a5 # Parent a4c688c8273e392b1bf33cfc736e00ec752a415e hgeditor: Remove temporary files even if interrupted Index: hg/hgeditor ===================================================================
author Radoslaw "AstralStorm" Szkodzinski <astralstorm@gorzow.mm.pl>
date Sun, 10 Jul 2005 16:00:49 -0800
parents e1fbc1982372
children 0100a43788ca
files hgeditor
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgeditor	Sun Jul 10 16:00:30 2005 -0800
+++ b/hgeditor	Sun Jul 10 16:00:49 2005 -0800
@@ -22,6 +22,8 @@
     # we don't sign merges
     exec $EDITOR "$1"
 else
+    # Remove temporary files even if we get interrupted
+    trap "cleanup_exit 255" TERM KILL INT QUIT ABRT
     T1=`mktemp`; T2=`mktemp`
 
     # Add manifest hash in order to sign whole repository state.