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 EdSchouten
Recipients EdSchouten
Date 2016-09-14.15:00:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473865232.9.0.464670005875.issue28153@psf.upfronthosting.co.za>
In-reply-to
Content
Just like the BSDs and Mac OS X, CloudABI (https://mail.python.org/pipermail/python-dev/2016-July/145708.html) provides support for kqueue(). Its implementation, however, is far more limited. It can only be used for polling on descriptors (EVFILT_READ/EVFILT_WRITE) and waiting on timers (EVFILT_TIMER).

The existing selectmodule already allows some filters to be present optionally (e.g., EVFILT_NETDEV). The attached patch extends this work by only defining the filter and corresponding filter flags when available.

I've also added guards around EV_SYSFLAGS and EV_FLAG1. EV_SYSFLAGS is a flag that's typically only used by the kernel to trim off flags that are only used internally. EV_FLAG1 is an example of such a flag, which seems to be used by FreeBSD to mark incoming AIO events as validated. I would even go as far as to remove these two flags from the module entirely, but let's not take the risk.
History
Date User Action Args
2016-09-14 15:00:32EdSchoutensetrecipients: + EdSchouten
2016-09-14 15:00:32EdSchoutensetmessageid: <1473865232.9.0.464670005875.issue28153@psf.upfronthosting.co.za>
2016-09-14 15:00:32EdSchoutenlinkissue28153 messages
2016-09-14 15:00:32EdSchoutencreate