git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git cherry unkillable

From
ABAndrey 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-----

Previous: sean
Message 7 of 7 in “git cherry unkillable”
  1. Andrey BorzenkovJan 22, 2006
  2. seanJan 22, 2006
  3. seanJan 22, 2006
  4. Andrey BorzenkovJan 22, 2006
  5. seanJan 22, 2006
  6. seanJan 22, 2006
  7. Andrey BorzenkovJan 22, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.