diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-01-03 06:46:42 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-01-03 06:46:42 +0000 |
commit | 2ed475228df5ac93c4219c4b9497513d071d6c78 (patch) | |
tree | 11de0ed4c51ff090caf5614d357bce7cd1430847 | |
parent | 52070981243a9633fc4021238a23f3bc69573925 (diff) | |
download | portage-2ed475228df5ac93c4219c4b9497513d071d6c78.tar.gz portage-2ed475228df5ac93c4219c4b9497513d071d6c78.tar.bz2 portage-2ed475228df5ac93c4219c4b9497513d071d6c78.zip |
When using the spawn's returnpid parameter, manually remove the returned pids from portage_exec.spawned_pids.
svn path=/main/trunk/; revision=5452
-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 72eb3abdf..039681dcf 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -3303,6 +3303,7 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0, for k, v in izip(auxdbkeys, mybytes.splitlines()): dbkey[k] = v retval = os.waitpid(mypids[0], 0)[1] + portage_exec.spawned_pids.remove(mypids[0]) # If it got a signal, return the signal that was sent, but # shift in order to distinguish it from a return value. (just # like portage_exec.spawn() would do). |