Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve pidfd lifetime handling #1680

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

swick
Copy link
Collaborator

@swick swick commented Mar 21, 2025

No description provided.

swick added 2 commits March 21, 2025 12:48
Peeking into the list and then calling dup ourselves missed that we
should have marked the file description as FD_CLOEXEC. By using the
proper API to get the fd, this is done for us.
This removes a dup which can fail and was also missing a call to mark it
as FD_CLOEXEC. Instead, the XdpAppInfo subclass which manages to
construct, steals the pidfd.
@swick swick mentioned this pull request Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant