leah blogs

July 2013

08jul2013 · Summer of Scripts: zombies

Another script originating from a debugging session (like swaptop) is zombies, a convenient way to list all zombie processes and what you need to kill to get rid of them:

% zombies
xdg-open/2776 zombie child of hotot/29421
firefox-limited/26341 zombie child of firefox/26337

The implementation is simple, but uses the neat trick of tree-sorting the processes to ensure parents processes are seen before their children.

NP: Toxoplasma—Heile Welt

Copyright © 2004–2022