diff options
Diffstat (limited to 'pym/portage.py')
-rw-r--r-- | pym/portage.py | 1 |
1 files changed, 1 insertions, 0 deletions
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) |