Skip to content

kill command process group on cancel - #394

Open
benldrmn wants to merge 2 commits into
mainfrom
fix/kill-process-group
Open

kill command process group on cancel#394
benldrmn wants to merge 2 commits into
mainfrom
fix/kill-process-group

Conversation

@benldrmn

Copy link
Copy Markdown
Collaborator

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a880bd2c69

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +67 to +68
func processAlive(pid int) bool {
return syscall.Kill(pid, 0) == nil

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Treat killed zombies as exited in process-tree test

In environments where PID 1 does not promptly reap orphaned children, the child killed by the process-group SIGKILL remains as a zombie reparented to PID 1; kill(pid, 0) still returns nil for zombies. That makes the new Eventually(... processAlive(childPID) ...).Should(BeFalse()) assertions time out even though the child is no longer running, so these tests fail/flap in containerized CI. Consider checking /proc/<pid>/status and treating State: Z as exited, or arranging for the child to be reaped.

Useful? React with 👍 / 👎.

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