[issue5154] OSX broken poll testing doesn't work

James Y Knight report at bugs.python.org
Thu Jul 29 22:17:28 CEST 2010

James Y Knight <foom at users.sourceforge.net> added the comment:

The reason it's a problem is because a "device" is everything other than a socket, pipe, slave-side of tty, or file. That is, /dev/null, /dev/zero, /dev/tty, psuedo-tty masters from openpty (e.g. for running subprocesses), etc.

I find it quite amazing that this is still broken after so long. Would it really be that hard for them to unify the select() and poll() code in the kernel? Sigh.

BTW, this same issue also affects kqueue.

But I'd say that Apple's utter failure in writing a working kernel is not really enough reason to disable the poll call for Python. If people want to use it only for the kinds of files that it works for, I don't see why python should prevent that.

Note that in the distant past, poll on OSX was *severely* broken, as it was a userspace wrapper over select(). In those days, disabling it was certainly the right thing to do.

nosy: +foom

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list