How to kill a zombie process or find it's parent process on a Mac using the Terminal?
Hack Saw says:
It would be a Very Bad Idea to kill
That will cause
Sadly, it appears that killing of zombies is all about killing the parent, and if the parent is /sbin/launchd, you can kill it only with rebooting.
I'm getting zombies from using Xcode, and stopping the simulator, and it's handing the zombies to my own personal /sbin/launchd, which didn't go away when I logged out.
ps -xo pid,ppid,stat,command will show you your processes, with their parent ID in the second column.
zombie processes are already dead and cannot be killed. They should be removed from the process table automatically when the parent process dies.
They do not slow down your machine and you can leave them there (they are just entries in the process table).
There is a maximum number of processes (you can check it with
If you reach this limit you will not be able to create new processes and you will be forced to reboot.