Ciaran McCreesh wrote: > 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. > I wasn't saying there was in this instance, I was just commenting that I found the method interesting as I've been reading up on bash. Having said that, it's good that you've let everyone know to be careful.
-- [email protected] mailing list
