* [gentoo-commits] portage r14452 - main/trunk/pym/portage
@ 2009-09-27 21:01 99% Zac Medico (zmedico)
0 siblings, 0 replies; 1+ results
From: Zac Medico (zmedico) @ 2009-09-27 21:01 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2009-09-27 21:01:49 +0000 (Sun, 27 Sep 2009)
New Revision: 14452
Modified:
main/trunk/pym/portage/__init__.py
Log:
In _test_pty_eof(), call waitpid on the child process only after reading all
the data from the pty.
Modified: main/trunk/pym/portage/__init__.py
===================================================================
--- main/trunk/pym/portage/__init__.py 2009-09-27 20:12:29 UTC (rev 14451)
+++ main/trunk/pym/portage/__init__.py 2009-09-27 21:01:49 UTC (rev 14452)
@@ -3779,7 +3779,6 @@
os._exit(os.EX_OK)
else:
slave_file.close()
- os.waitpid(pid, 0)
eof = False
data = []
@@ -3809,6 +3808,7 @@
data.append(_unicode_decode(buf.tostring(),
encoding='utf_8', errors='strict'))
+ os.waitpid(pid, 0)
master_file.close()
return test_string == ''.join(data)
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2009-09-27 21:01 99% [gentoo-commits] portage r14452 - main/trunk/pym/portage Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox