From: Zac Medico Date: Sat, 31 Mar 2007 11:04:00 +0000 (-0000) Subject: Fix missing import. (trunk r6324:6325) X-Git-Tag: v2.1.2.4~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=49e92c5cc5b22fcd0894d46a1898ded574e615a0;p=portage.git Fix missing import. (trunk r6324:6325) svn path=/main/branches/2.1.2/; revision=6326 --- diff --git a/pym/portage.py b/pym/portage.py index 7c9f995cb..1847d8626 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -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)