summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-03-31 11:01:29 +0000
committerZac Medico <zmedico@gentoo.org>2007-03-31 11:01:29 +0000
commit7151ed3688fc76b2c405a8aed5e04f0e8fa909e1 (patch)
tree51acb2016173c5cf228c65c03bb46e424e186853
parentb8e6d91b16d75f3953727e6543669631698fe6f1 (diff)
downloadportage-7151ed3688fc76b2c405a8aed5e04f0e8fa909e1.tar.gz
portage-7151ed3688fc76b2c405a8aed5e04f0e8fa909e1.tar.bz2
portage-7151ed3688fc76b2c405a8aed5e04f0e8fa909e1.zip
Fix missing import.
svn path=/main/trunk/; revision=6325
-rw-r--r--pym/portage/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 1b8aba21a..2b954254a 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -2326,6 +2326,7 @@ def spawn(mystring, mysettings, debug=0, free=0, droppriv=0, sesandbox=0, **keyw
if retval != os.EX_OK:
for pid in mypids:
if os.waitpid(pid, os.WNOHANG) == (0,0):
+ import signal
os.kill(pid, signal.SIGTERM)
os.waitpid(pid, 0)
portage.process.spawned_pids.remove(pid)