Skip to content

fix(cli): process group running check after EPERM on macOS#115

Merged
duguwanglong merged 1 commit intomainfrom
fix/cli-process-group-eperm-macos
Apr 14, 2026
Merged

fix(cli): process group running check after EPERM on macOS#115
duguwanglong merged 1 commit intomainfrom
fix/cli-process-group-eperm-macos

Conversation

@xiami762
Copy link
Copy Markdown
Contributor

@xiami762 xiami762 commented Apr 14, 2026

Summary

Fixes process_group_is_running so that when os.killpg raises PermissionError (e.g. macOS EPERM on a defunct group leader), we do not assume the process group is still running. We fall through to member PID checks and only return true if at least one member is alive.

On macOS, killpg can raise PermissionError for a defunct group leader even
when no runnable members remain. Fall through to member liveness checks
instead of assuming the group is still running.

Made-with: Cursor
@xiami762 xiami762 requested a review from duguwanglong April 14, 2026 06:24
@duguwanglong duguwanglong merged commit 99fb4af into main Apr 14, 2026
2 checks passed
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.

2 participants