Bug #278895 - Make ebuild.sh clean up orphaned processes that may have been
authorZac Medico <zmedico@gentoo.org>
Thu, 30 Jul 2009 07:29:34 +0000 (07:29 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 30 Jul 2009 07:29:34 +0000 (07:29 -0000)
commit2c448fe6d4182f4b154f941adabfccbdea2936bc
treee4e42836fdfd6ffea72c0d6aa86fd2da1105f1cc
parent4928fa94e1f5b247ade11734b432d184a55a322d
Bug #278895 - Make ebuild.sh clean up orphaned processes that may have been
left behind by ebuild phases. This works by using setsid to create a new
login session for the ebuild.sh process, and `kill -s SIGHUP 0` to send
a SIGHUP signal to all processes in the session. The setsid is currently
not done on the python side since that would cause the sandbox process in
the session, and sandbox produces a warning message if it catches a SIGHUP
signal.

svn path=/main/trunk/; revision=13856
bin/ebuild.sh
bin/isolated-functions.sh
pym/portage/__init__.py