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
more pidfdification #29594
Merged
poettering
merged 21 commits into
systemd:main
from
poettering:cgroup-rename-ret-params
Oct 18, 2023
Merged
more pidfdification #29594
poettering
merged 21 commits into
systemd:main
from
poettering:cgroup-rename-ret-params
Oct 18, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
journal
sd-bus
systemctl
cgtop
coredump
please-review
PR is ready for (re-)review by a maintainer
labels
Oct 17, 2023
bluca
approved these changes
Oct 17, 2023
bluca
added
good-to-merge/with-minor-suggestions
and removed
please-review
PR is ready for (re-)review by a maintainer
labels
Oct 17, 2023
YHNdnzj
reviewed
Oct 18, 2023
YHNdnzj
reviewed
Oct 18, 2023
YHNdnzj
added
reviewed/needs-rework 🔨
PR has been reviewed and needs another round of reworks
and removed
good-to-merge/with-minor-suggestions
labels
Oct 18, 2023
poettering
force-pushed
the
cgroup-rename-ret-params
branch
from
October 18, 2023 09:03
20baab9
to
bf0a6ea
Compare
github-actions
bot
added
please-review
PR is ready for (re-)review by a maintainer
and removed
reviewed/needs-rework 🔨
PR has been reviewed and needs another round of reworks
labels
Oct 18, 2023
Addressed all points raised (except for the FOREACH_ARRAY thing, which doesn't work, see above) |
poettering
force-pushed
the
cgroup-rename-ret-params
branch
from
October 18, 2023 09:13
bf0a6ea
to
9053ef3
Compare
YHNdnzj
approved these changes
Oct 18, 2023
LGTM, and these are minor things except the question on |
The process exists as long as the kernel/userns exists at all, hence we don't have to verify a pidfd to it.
This way we can be sure to provide an atomic view of the process tree of a unit.
This simply checks if the specified PidRef refers to the process we are running in. (In case you wonder why this is not a static inline: to avoid cyclic header inclusion problems between pidref.h + process-util.h)
…ref_is_alive() Let's no eat up errors, but propagate unexpected ones.
poettering
force-pushed
the
cgroup-rename-ret-params
branch
from
October 18, 2023 12:55
9053ef3
to
1158b06
Compare
addressed remaining issues (well, except for as discussed above) |
YHNdnzj
added
good-to-merge/waiting-for-ci 👍
PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed
and removed
please-review
PR is ready for (re-)review by a maintainer
labels
Oct 18, 2023
github-actions
bot
removed
the
good-to-merge/waiting-for-ci 👍
PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed
label
Oct 18, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This ports a bunch of more things over to PidRef and pidfds. Far from done, but PID 1 is look pretty good now. (other daemons much less so)