You would need to store the pid in the process dictionary. I thought that's what you meant in your previous comment. :)