Skip to content

os: use pidfd_open with epoll on Linux instead of blocking wait in blockUntilWaitable #60320

Open
@mitar

Description

@mitar

My understanding is that in blockUntilWaitable the waitid call blocks the thread you call it on. On Linux, we could instead use pidfd_open and then monitor the file descriptor with epool:

When the process that it refers to terminates, these interfaces (e.g., epool) indicate the file descriptor as readable.

I think this would then not block the thread?

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions