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