On Wed, 03 Jan 2007 21:59:57 +0000 Steve Long
<[EMAIL PROTECTED]> wrote:
| Ignoring the religious debate for a sec, can I just ask how this is
| being done? I thought an exit from a subshell took out the parent
| too, so I'm curious.

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.

-- 
Ciaran McCreesh
Mail                : ciaranm at ciaranm.org
Web                 : http://ciaranm.org/
Paludis is faster   : http://ciaranm.org/show_post.pl?post_id=61

Attachment: signature.asc
Description: PGP signature

Reply via email to