Register for poll events before forking, in order to avoid potential race conditions
authorZac Medico <zmedico@gentoo.org>
Thu, 25 Dec 2008 01:21:17 +0000 (01:21 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 25 Dec 2008 01:21:17 +0000 (01:21 -0000)
commit26da1ffb71799b9222fd2dde143d34fc389d5b5b
treec812e47b6efef1e0dd8fc30e0da1afe14189bbb9
parent1393a06e68c54cb53244f6f918660b42a8567b6b
Register for poll events before forking, in order to avoid potential race conditions
in SpawnProcess._start() and EbuildMetadataPhase._start(). Hopefully this solves
hung poll calls with defunct ebuild.sh processes, reported on solaris systems by
Fabian Groffen <grobian@g.o>. (trunk r12285)

svn path=/main/branches/2.1.6/; revision=12316
pym/_emerge/__init__.py