Fix missing import.
authorZac Medico <zmedico@gentoo.org>
Sat, 31 Mar 2007 11:01:29 +0000 (11:01 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 31 Mar 2007 11:01:29 +0000 (11:01 -0000)
svn path=/main/trunk/; revision=6325

pym/portage/__init__.py

index 1b8aba21abbc4c8facec140f0d079125335d6a65..2b954254a83d771385ac8176efa25667d9b381b2 100644 (file)
@@ -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)