public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r14452 - main/trunk/pym/portage
@ 2009-09-27 21:01 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
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	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-27 21:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-27 21:01 [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