Skip to content

Handle waitid(P_PGID, 0) as a wait for the caller's process group - #4143

Open
Keno wants to merge 1 commit into
rr-debugger:masterfrom
ChronitonAI:waitid-pgid-pid
Open

Keno wants to merge 1 commit into
rr-debugger:masterfrom
ChronitonAI:waitid-pgid-pid

Conversation

@Keno

@Keno Keno commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

[Encountered, patch, test by AI]

Since Linux 5.4 (821cc7b0b205, "waitid: Add support for waiting for the current process group"), P_PGID with an id of 0 means the caller's process group. rr matched it against process group 0 instead, so emulated stops weren't reported to such a wait: with WNOHANG it returned no child, otherwise it blocked.

Since Linux 5.4 (821cc7b0b205, "waitid: Add support for waiting for
the current process group"), P_PGID with an id of 0 means the caller's
process group. rr matched it against process group 0 instead, so
emulated stops weren't reported to such a wait: with WNOHANG it
returned no child, otherwise it blocked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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