Tuesday, August 11, 2015
Kill Process Group
When a UNIX process spawns child processes, they all belong to the same process group. And you can kill the whole process group at once using kill -9 - . The negation symbol in front of the PGID value is the key here. How did I not know this before? I always grep'd the output of ps and killed the individual processes.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment