Register for poll events before forking, in order to avoid potential race conditions
authorZac Medico <zmedico@gentoo.org>
Tue, 23 Dec 2008 18:53:13 +0000 (18:53 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 23 Dec 2008 18:53:13 +0000 (18:53 -0000)
commiteb547b4c1538ead1006a9184981369979afff82c
tree1f663fd5314eaf19d779e4b974ec71fb6dae1f29
parentad6bd931c6a9f02b6b2d20ab4657dec4a3157e2e
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>.

svn path=/main/trunk/; revision=12285
pym/_emerge/__init__.py