Skip to content

select.poll.poll should use ppoll when it's available #142434

@SpecLad

Description

@SpecLad

Feature or enhancement

Proposal:

ppoll is an extended version of poll that lets you set the timeout with nanosecond precision (it also supports setting a signal mask, but that's not important right now). It's available on Linux, FreeBSD, OpenBSD, NetBSD, and probably other Unix-likes.

It would be useful if the Python poll function would transparently use ppoll on systems where it is available to provide timeouts with nanosecond precision (as opposed to the default millisecond precision).

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions