Operating System - HP-UX
1819866 Members
2525 Online
109607 Solutions
New Discussion юеВ

Killing a defunct process

 
Nahmad_1
Advisor

Killing a defunct process

Hi There

When we run GUE on HP-UX X-Windows a defunct X-windows process sometimes stay there.

What is best and easiest way to kill it ?

Thanks

Nahmad
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: Killing a defunct process

A defunct process is a zombie. The only way you kill zombies is by killing the zombie master, its parent. (You can read all about this by doing an advanced search for zombie master.)
A process that has a parent of init (1) isn't a zombie.
So what do you really have?
Mike Miller_8
Regular Advisor

Re: Killing a defunct process

Many zombie'd processes will not respond to the kill command. A system reboot will clear them. If a non-root process is the parent, killing the parent process can sometimes clear the zombie as well (though this sometimes leaves ports locked).
SKR_1
Trusted Contributor

Re: Killing a defunct process

Reboot of the box will be the better option to kill these defunct processes.

Thanks
Laurent Menase
Honored Contributor

Re: Killing a defunct process

kill the parent process will always remove defunct process ( zombies)

zombies are processes which are dead and which are waiting that the parent process acknowledge their exit status. It only keep a very limited amount of memory.
Parent process must issue a waitpid()/wait3()... to cleanup zombies

When an application is masking SIGCHILD, zombies are automatically cleandup.

When killing the parent process, it is attached to the process 1 init.
init calls waitpid() cleaning up zombies automatically.


The only case when zombies can't be cleanup is when for whatever reason parent process can't be stopped or killed.