Killing a process and all of its descendants
http://morningcoffee.io/killing-a-process-and-all-of-its-descendants.html [morningcoffee.io]
2019-08-03 18:49
Unix-like operating systems have sophisticated process relationships. Parent-child, process groups, sessions, and session leaders. However, the details are not uniform across operating systems like Linux and macOS. POSIX compliant operating systems support sending signals to process groups with a negative PID number.
I think some of this is not entirely correct, but as noted, it’s a complicated subject.
source: HN