|
|
|
|
|
by epaulson
988 days ago
|
|
It is kinda bonkers that after 30 years Linux still doesn't some kind of inescapable and recursive process group mechanism. How many tens of thousands of hours of programming time would have been saved over the years if there was a way to:
1. Your process can create a new process group ID (and write it out to stable storage if it wants)
2. add an argument to fork so the same process can pass that ID into fork and the child of the fork wakes up permanently in that group, and any child processes later created by that child will also be in that group
3. Any new groups created by any process in the group are always contained in the original group, you can never leave a group but you might be in multiple groups.
4. There's a way to kill an entire group and verify that everything for an identifier is dead. I think Solaris and some of the BSDs had something like this, so I wish Linux would add one too (though, I guess Linux has managed without one for so long that maybe that's proof enough that it's not really needed, and worst case you can always just reboot the box - nuking from orbit is the only way to be sure) |
|