Re: oprhan/zombie processes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2008-04-28 at 09:14 -0430, Patrick O'Callaghan wrote:
> On Mon, 2008-04-28 at 12:55 +0000, tony.chamberlain@xxxxxxxxx wrote:
> >  
> > Someone requested a list of orphaned and zombie processes.  I know
> > that orphan processes have
> > PPID of 1 so I can 
> > 
> >      ps -aeo user,pid,ppid,stime,time,state,command | awk '($3=="1" ||
> > $6=="Z")'
> > 
> > But this will also print all system processes because they also have
> > PPID of 1.
> > How can I find just the orphan processes
> > (without | grep -v mgetty | grep -v init | grep -v this | grep -v that
> > | grep -v something_else | grep -v blahblahblah)?
> > -- 
> 
> "Zombie" is a well-defined process state (a process which is trying to
> die but hasn't yet been able to tell its parent), but "orphan" is an
> informal definition (a process with a dead parent, which is then adopted
> by init, and is not a zombie). Unless you can distinguish all processes
> which init "ought to have" and eliminate them from consideration,
> there's no way to distinguish.
> 
> p
> 
Something funny about this discussion. Using ps, Zombie processes have a
Z in Process State Column.


--
=======================================================================
Novinson's Revolutionary Discovery: When comes the revolution, things
will be different -- not better, just different.
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@xxxxxxxxxxxxx

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux