Re:The history of sending signals to Unix process groups
by xani_ on Tuesday September 06, 2022 @10:14AM
(#32737364)
Drop them into cgroup so the new pids can't run away is I think only reliable one
[ Parent
| on HN ]
Re:The history of sending signals to Unix process groups
by nrclark on Tuesday September 06, 2022 @11:11AM
(#32738148)
Solid approach for desktop Linux. Not possible on Unix in a general sense, because cgroups are a Linux-specific thing. They also depend on having certain kernel options enabled.
So if you want to write software that can target MacOS or any of the BSDs, then you can't use cgroups.
Re:The history of sending signals to Unix process groups
by teddyh on Tuesday September 06, 2022 @12:22PM
(#32739321)
As explained in the link, although constrained processes can not escape the cgroup, they can fork off another PID indefinitely. Also, the old PID the forking leaves behind might be re-used by some other new process in another cgroup, and now you’ve killed the wrong process. Oops!