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

Re: Zombie process using pppd



On 09-Sep-1999, Marcin Owsiany <porridge@pandora.info.bielsko.pl> wrote:
> On Wed, Sep 08, 1999 at 09:47:19PM +0200, Laurent PICOULEAU wrote:
> > Hi,
> > 
> > On Wed, 08 Sep, 1999 ? 08:30:35AM -0400, Mark Buda wrote:
> > > >>>>> "Alex" == Alex V Toropov <alex@ct.spb.ru> writes:
> > > 
> > >     Alex> In what situation process becomes Zombie ?
> > > 
> > > When a process exits, it can return an exit status code to its parent
> > > process. The parent process retrieves this exit status code by
> > > invoking the wait() system call. A zombie process is a process that
> > > has exited, but whose parent hasn't used wait() to get its exit status
> > > code yet. It isn't doing anything, it's just there in the list of
> > > processes, waiting to be wait()ed for, unable to really die until that
> > > happens.
> > > 
> > > Eventually, even if the neglectful parent process never wait()s for
> > > it, it will go away, for this reason: When a parent process exits,
> > > init (process id 1) inherits all its child processes. And one of
> > > init's less well-known jobs is wait()ing for orphaned zombie
> > > processes.
> > 
> > Is there a way to determine the neglecting parent of a zombi ? Such as to be
> > able to kill the parent if it's not a necessary program and letting init
> > inherits the zombi process.
> 
> try
> 
> ps axuf
> 
> - gives you a nice process tree
> 
Also try 
    pstree

Pete


Reply to: