Process Group
A mechanism in Unix/Linux operating systems for organizing and managing related processes. All processes within the same process group can receive a unified signal, making process groups commonly used for batch termination of related child processes.
Timeline (last 90 days)
By placing child processes in an independent process group via setsid() or setpgrp(), combined with kill(-pgid, SIGKILL), batch cleanup can be achieved.
The cgroup approach provides the most thorough cleanup on Linux, but macOS support is limited; the process group approach has better cross-platform compatibility but is powerless against escaped processes that have already detached from the process group.
All Facts (2)
By placing child processes in an independent process group via setsid() or setpgrp(), combined with kill(-pgid, SIGKILL), batch cleanup can be achieved.
50%UnverifiedThe cgroup approach provides the most thorough cleanup on Linux, but macOS support is limited; the process group approach has better cross-platform compatibility but is powerless against escaped processes that have already detached from the process group.
50%