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

pym/portage.py

index 7c9f995cb5be348ce4688090dcf9656b48e10db8..1847d8626f25abe8dd818b8a62da6a9c66a58938 100644 (file)
@@ -2251,6 +2251,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_exec.spawned_pids.remove(pid)