Re: git cherry unkillable
- From
- Andrey Borzenkov <arvidjaar@mail.ru>
- Date
- Jan 22, 2006, 15:01 UTC
- Message-ID
- <200601221801.29769.arvidjaar@mail.ru>
- In-Reply-To
- <BAYC1-PASMTP10435A067270A659801A48AE110@CEZ.ICE>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sunday 22 January 2006 14:39, sean wrote:
> > The attached patch works for me
ack at least for git-cherry
Show 6 quoted lines
> but i'm concerned about it a bit. With > this patch it looks like the signal handler is executed twice; once as > normal and a second time in response to the added "exit" statement. By > adding ";trap - 0;exit" it is only executed once, but i'm not sure how > universal that is, and letting it run twice shouldn't be a big deal anyway. >
why not
trap "rm -rf $tmp-*" 0 trap "exit" 1 2 3 15
?
- -andrey -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFD055JR6LMutpd94wRAn06AJ0RrLXwND67hvhRrSeaQvUjgrfGrACeK1cs JA0jLNs5/8FPwpZqzKRd3eo= =8QbF -----END PGP SIGNATURE-----