osx - How can I kill a zombie process whose parent is PID = 0? -
often, when running lldb on osx, debugger sporadically crash (this seems nature of lldb). when happens, zombie process (the 1 debugging) looks strange. has parent pid = 0:
my process called: worker
here output of ps aux | grep worker
root 22785 0.0 0.0 0 0 ?? z 3:48pm 0:00.00 (worker)
as can see, process has pid, has no parent pid. nothing
sudo kill -9 <pid>
in fact, nothing short of restart seems rid of it. how can kill process that? need process die, because holds on ports need.
zombie name given processes died. not run longer , do not consume system resources longer. listed in process table not updated @ time zombie process finished running. reason why not assigned meaningful parent.
therefore can not kill zombie second time (as name implies, in contrary happens in medium-level horror movies :-)). in operating systems enough wait time zombie processes disappear list of processes. or have reboot if can not live this.
rest assured, zombies no harm you.