GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Expose PIDFD_NONBLOCK as os.PIDFD_NONBLOCK · Issue #93312 · python/cpython

Expose PIDFD_NONBLOCK as os.PIDFD_NONBLOCK #93312

New issue
Copy link
New issue
Copy link
Closed
Closed
Expose PIDFD_NONBLOCK as os.PIDFD_NONBLOCK#93312
Copy link
Labels
type-featureA feature request or enhancementA feature request or enhancement

Description

@kumaraditya303
kumaraditya303
opened on May 28, 2022
Issue body actions

Feature or enhancement

Expose PIDFD_NONBLOCK as os.PIDFD_NONBLOCK to be used with os.waitid.

Pitch

pidfd_open returns a nonblocking file descriptor if PIDFD_NONBLOCK is supplied as flag. If the process
referred to by the file descriptor has not yet terminated,
then an attempt to wait on the file descriptor using
waitid(2) will immediately return the error EAGAIN rather
than blocking.

Linked PRs

  • gh-93312: Include <sys/pidfd.h> to get PIDFD_NONBLOCK #127593
  • [3.13] gh-93312: Include <sys/pidfd.h> to get PIDFD_NONBLOCK (GH-127593) #127630
  • [3.12] gh-93312: Include <sys/pidfd.h> to get PIDFD_NONBLOCK (#127593) #127631

Activity

  1. kumaraditya303
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on May 28, 2022
  2. vstinner
    added a commit that references this issue on May 31, 2022

    GH-93312: Add os.PIDFD_NONBLOCK flag (#93313)

    a565ab0
  3. kumaraditya303 commented on May 31, 2022

    @kumaraditya303
    kumaraditya303
    on May 31, 2022
    ContributorAuthor
    More actions

    Fixed by #93313

  4. kumaraditya303
    closed this as completedon May 31, 2022
  5. Oleg-Deomidoff commented on Dec 3, 2024

    @Oleg-Deomidoff
    Oleg-Deomidoff
    on Dec 3, 2024
    More actions

    according to documentation it should be available, yet it is not there:

    python3.13 Wed 04 Dec 2024 01:57:39 AM +03
    Python 3.13.0 (main, Oct 8 2024, 00:00:00) [GCC 14.2.1 20240912 (Red Hat 14.2.1-3)] on linux
    Type "help", "copyright", "credits" or "license" for more information.

    import os
    os.PIDFD_NONBLOCK
    Traceback (most recent call last):
    File "", line 1, in
    os.PIDFD_NONBLOCK
    AttributeError: module 'os' has no attribute 'PIDFD_NONBLOCK'. Did you mean: 'EFD_NONBLOCK'?

  6. vstinner
    added a commit that references this issue on Dec 4, 2024

    pythongh-93312: Include <sys/pidfd.h> to get PIDFD_NONBLOCK

    8829071
  7. vstinner commented on Dec 4, 2024

    @vstinner
    vstinner
    on Dec 4, 2024
    Member
    More actions

    AttributeError: module 'os' has no attribute 'PIDFD_NONBLOCK'

    Correct, something is wrong. I wrote #127593 to fix the constant.

  8. vstinner
    added a commit that references this issue on Dec 5, 2024

    gh-93312: Include <sys/pidfd.h> to get PIDFD_NONBLOCK (#127593)

    fcbe6ec
  9. miss-islington
    added a commit that references this issue on Dec 5, 2024

    pythongh-93312: Include <sys/pidfd.h> to get PIDFD_NONBLOCK (pythonGH…

    25ff4df
  10. vstinner
    added 2 commits that reference this issue on Dec 5, 2024

    [3.12] gh-93312: Include <sys/pidfd.h> to get PIDFD_NONBLOCK (#127593) (

    288d6d0

    [3.13] gh-93312: Include <sys/pidfd.h> to get PIDFD_NONBLOCK (GH-127593…

    3e11b5c
  11. srinivasreddy
    added a commit that references this issue on Jan 8, 2025

    pythongh-93312: Include <sys/pidfd.h> to get PIDFD_NONBLOCK (python#1…

    f2e4894
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.