From: Andrey Borzenkov Date: Sun, 22 Jan 2006 15:01:23 GMT Subject: Re: git cherry unkillable Message-ID: <200601221801.29769.arvidjaar@mail.ru> In-Reply-To: -----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 > 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-----