On Wed, 03 Jan 2007 23:59:23 +0000 Steve Long <[EMAIL PROTECTED]> wrote: | Ciaran McCreesh wrote: | > At the top level, we set an environment variable to the pid of the | > main ebuild process. Then we install a signal trap handler, which, | > thanks to how bash works, is allowed to exit the main process. Then | > we make die first try to signal that trap handler, via kill (hence | > why we need the main pid), and then fall back to an exit. | | Wicked; was just re-reading about bash portability in the autobook: | http://sources.redhat.com/autobook/autobook/autobook_210.html#SEC210 | Handy stuff to know if you don't already.
There is no portability. The trick will work in bash, and only in bash, and only until upstream randomly changes something that breaks some side effect of signal handling upon which we rely. -- Ciaran McCreesh Mail : ciaranm at ciaranm.org Web : http://ciaranm.org/ Paludis is faster : http://ciaranm.org/show_post.pl?post_id=61
signature.asc
Description: PGP signature