Operating System - HP-UX
1834667 Members
2517 Online
110069 Solutions
New Discussion

erase zombies like Solaris preap command can?

 
Ken Stailey
Frequent Advisor

erase zombies like Solaris preap command can?

I know all about zombies. I know about signal(SIGCHLD, SIG_IGN), wait(), wait3(), waitpid(). I know about /sbin/init zombie inheritance. I don't care.

Solaris preap command can erase zombies just like that. Is there anything for HP-UX that can do it too?

Thanks, :)
13 REPLIES 13
Steven E. Protter
Exalted Contributor

Re: erase zombies like Solaris preap command can?

If kill -9 can not kill it, then only a reboot on HP-UX can kill the zombie.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Alex Lavrov.
Honored Contributor

Re: erase zombies like Solaris preap command can?

Nope, you can't erase them ...

Sometimes they disappear by themselves, but sometimes they stuck there forever. I'm pretty sure Solaris not actually kills them, probably just erases them from the process table and you don't see it, but it's still there.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Raj D.
Honored Contributor

Re: erase zombies like Solaris preap command can?

Hi Ken ,

Try # kill -9 PID to kill the process .

And still if it fails , that means its become zombie.. and its parent process not exists and died. Hence init is beoce the parent.

As you cannot kill init process , only option left is to reboot the box.

Cheers ,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Ken Stailey
Frequent Advisor

Re: erase zombies like Solaris preap command can?

Wow, I'm surprised zombies are so poorly understood. All your response show you need to learn.

Think of zombies as an IPC between exit() and wait(). The process is stripped down to just exit status which is stored in a process table slot by exit() and retrieved by wait().

Note that by "wait()" I am refering to the entire "wait family": wait(), wait3(), waitpid(), etc.
Alex Lavrov.
Honored Contributor

Re: erase zombies like Solaris preap command can?

Heh, if you are so smart and so well educated (tho your manners seek improvement), why do you bother asking?

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Raj D.
Honored Contributor

Re: erase zombies like Solaris preap command can?

Hey Ken ,

Why dont you write a program :
which will find out the process between exit() and wait() , and to kill it intelligently and cleaverly .

And let us know also ,

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
A. Clay Stephenson
Acclaimed Contributor

Re: erase zombies like Solaris preap command can?

Signaling (killing) a zombie is utterly pointless; the process is already dead and cannot possibly respond to a signal. The only resource that is being consumed is a slot in the process table so unless the process table is nearly full, zombies are completely harmless and can be ignored. There is no command to clear these entries from the process table.
If it ain't broke, I can fix that.
Ken Stailey
Frequent Advisor

Re: erase zombies like Solaris preap command can?

> why do you bother asking?

If you bother to read my question I was asking about a feature that Solaris has that might have an analog in HP-UX.

I started by explaining that I didn't want an answer about anything else.
Patrick Wallek
Honored Contributor

Re: erase zombies like Solaris preap command can?

Ken,

What exactly are you looking for here? All answers so far have been correct.

I have just looked at a doc on the Solaris preap command. And yes, I do understand what a zombie / defunct process is.

NO HP-UX does not have a command similar to Solaris' preap command.

If you don't like the answers, so sorry.

Ken Stailey
Frequent Advisor

Re: erase zombies like Solaris preap command can?

> What exactly are you looking for here?

I'm asking for exactly what I'm asking for, nothing more or less.
Patrick Wallek
Honored Contributor

Re: erase zombies like Solaris preap command can?

OK.

You asked: Solaris preap command can erase zombies just like that. Is there anything for HP-UX that can do it too?

My answer: No!
Alex Lavrov.
Honored Contributor

Re: erase zombies like Solaris preap command can?

Steven E Protter: " only a reboot on HP-UX can kill the zombie"

Alex Lavrov: "Nope, you can't erase them ..."

Raj D.: "only option left is to reboot the box"

A. Clay Stephenson: "There is no command to clear these entries from the process table."


You got your solution *4* times. An after this, you assign each of these ppl, who took time to answer you, *0* points and even say that they don't understand what zombie is ... Thank you, was a pleasure to help you.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Raj D.
Honored Contributor

Re: erase zombies like Solaris preap command can?

Ken ,

Sorry to say !! , that its real bad thing , that you could not understand this forum , nor the people's out here , and nor the answers ?

And you sticked to yourself. Assigning everyone "zero point.", and prooved yourself.

Do you think , these experienced peoples are making joke with you , and your question! , The answer is absolutly no , But you are ?


Thx,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "