summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/AbstractEbuildProcess.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-13 07:47:56 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-13 07:47:56 -0700
commit9a5f9cf8f6a8ff78cc124c40aaebcedd7be8d059 (patch)
tree5b77dab8cb645ebca3405e9650d8eeaf197f02b2 /pym/_emerge/AbstractEbuildProcess.py
parent12cbc8821476dcbac38464a41f7cb336da7ac0c9 (diff)
downloadportage-9a5f9cf8f6a8ff78cc124c40aaebcedd7be8d059.tar.gz
portage-9a5f9cf8f6a8ff78cc124c40aaebcedd7be8d059.tar.bz2
portage-9a5f9cf8f6a8ff78cc124c40aaebcedd7be8d059.zip
Bug #278895 - After EbuildIpcDaemon identifies an ebuild process that
has left an orphan child process running in the background, generate an eerror message about a 'zombie' process and note the pid.
Diffstat (limited to 'pym/_emerge/AbstractEbuildProcess.py')
-rw-r--r--pym/_emerge/AbstractEbuildProcess.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/pym/_emerge/AbstractEbuildProcess.py b/pym/_emerge/AbstractEbuildProcess.py
index 913a32d12..c3f539dcd 100644
--- a/pym/_emerge/AbstractEbuildProcess.py
+++ b/pym/_emerge/AbstractEbuildProcess.py
@@ -60,6 +60,16 @@ class AbstractEbuildProcess(SpawnProcess):
# being killed by a signal.
self.cancel()
+ def _zombie(self):
+ phase = self._get_phase()
+
+ msg = _("The ebuild phase '%s' appears "
+ "to have left a zombie process with "
+ "pid %d.") % (phase, self.pid)
+
+ for l in textwrap.wrap(msg, 72):
+ eerror(l, phase=phase, key=self.settings.mycpv)
+
def _pipe(self, fd_pipes):
stdout_pipe = fd_pipes.get(1)
got_pty, master_fd, slave_fd = \