From: Zac Medico Date: Sat, 31 Mar 2007 11:01:29 +0000 (-0000) Subject: Fix missing import. X-Git-Tag: v2.2_pre1~1519 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7151ed3688fc76b2c405a8aed5e04f0e8fa909e1;p=portage.git Fix missing import. svn path=/main/trunk/; revision=6325 --- 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)