I only need the two bits of information - the PID and the
parent PID ( ie, PPID ). If you look at the portion where
the comment mentions something about "cement shoes and
overcoats", you will notice I am sorting by the PPID
in a vain attempt to kill the main process.
Fine, that's a good q&d thing to do and your code probably does it. The code you
posted just got mangled so there is no key between $proc{} and {PPID}.