This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients giampaolo.rodola, josiahcarlson, neologix, python-dev, stutzbach, terry.reedy, vstinner, xdegaye
Date 2011-10-29.13:23:42
SpamBayes Score 1.0180132e-06
Marked as misclassified No
Message-id <1319894623.59.0.0195639405276.issue5661@psf.upfronthosting.co.za>
In-reply-to
Content
> The test fails when use_poll is True.
> The difference between using poll() and poll2():

poll uses select(2), while poll2 uses poll(2) (duh, that's confusing).
It seems that on OS X Snow Leopard, poll(2) sets the POLLPRI flag upon EPIPE (and probably doesn't return the FD in the exception set for select(2)...).
Not sure whether it's legal, but it's the only OS to do that (POLLPRI usually used for OOB data). Also, note that Tiger doesn't behave that way.
OS X often offers such surprises :-)

> What about forcing self.use_poll to False, before calling
> loop_waiting_for_flag() ? The drawback being that the test will be run
> twice with the same environment.

I just added an handle_expt() handler, and it works fine.

Closing, thanks for the patch!
History
Date User Action Args
2011-10-29 13:23:43neologixsetrecipients: + neologix, terry.reedy, josiahcarlson, vstinner, giampaolo.rodola, stutzbach, xdegaye, python-dev
2011-10-29 13:23:43neologixsetmessageid: <1319894623.59.0.0195639405276.issue5661@psf.upfronthosting.co.za>
2011-10-29 13:23:43neologixlinkissue5661 messages
2011-10-29 13:23:42neologixcreate