syscall: Kill pid argument cannot be a pgid because it is forced to be an unsigned int #53199
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Because of the negative argument to syscall.Kill I was expecting all children of the processgroup to be killed, as per https://man7.org/linux/man-pages/man2/kill.2.html
What did you see instead?
The argument of syscall.Kill is converted into an unsigned integer instead of being passed as a negative number and only the immediate child is killed, not the entire process group. Which pretty much defeats the purpose of creating a process group in this particular case.
The text was updated successfully, but these errors were encountered: