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

std.process.kill should fail for a terminated pid #10587

Open
helmutg opened this issue Dec 12, 2024 · 0 comments
Open

std.process.kill should fail for a terminated pid #10587

helmutg opened this issue Dec 12, 2024 · 0 comments

Comments

@helmutg
Copy link

helmutg commented Dec 12, 2024

If passing a Pid with processID value set to Pid.terminated to kill, its value is interpreted as a process group id and the entire process group is being killed on Posix systems. A discussion on #10586 indicates that this behavior is not intentional. It is being proposed to change the behavior of kill to throw an exception when being passed a Pid instance with a negative processID. When doing so, the change in #10586 should be reverted as then, the kill function reliably throws the expected exception rather than failing only when the named process group happens to not exist.

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

No branches or pull requests

1 participant