|
Zombie process is a process state when the child dies before the parent process. |
|||
|
|
Having a zombie process listed in your ps output is not a bad thing, necessarily. It's usually being kept around in the process table because the parent process may still need to read the exit status of the child process (zombied / defunct process). If it really bothers you, you can try to kill -9 the process. If that doesn make it go away, you can try to nudge the parent proicess by sending it a kill -HUP. To find the parent process: |
|||
|
|
Kunal and adam are spot on. |
|||
|
|
If you're a little bit familiar with C and UNIX programming environment, the following example might help you to understand what is a zombie process.
After compiling this program (gcc -o zombie zombie.c) and running it (./zombie), don't hurry to press enter. Run in the other terminal: $ ps aux | grep Z and you will see your zombie process! It happens because child process dies and parent does not react on this event properly. Conventionally, parent must call waitpid or wait function to obtain child's exit status. At this moment zombie disappears. However, some programs either forget to call waitpid, either do it some time later. HTH, Vasily |
|||
|
|
27
Answers
|
|
27
Answers
|
|
8
Answers
|
|
5
Answers
|
|
2
Answers
|
|
1
Answer
|
|
1
Answer
|
|
2
Answers
|
|
1
Answer
|
|
1
Answer
|
| The package manager is giving me this message, what do i do to correct it? | Internet |
| Is there a Linux app to reset password? | Applications |
| How can I transfer video from mobile to pc linux? | Audio/Video |
| Why app launcher doesn´t open? | Applications |
| How can I open VLC recording automatically in second workspace when I reboot my System? | Systems Management |
The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.
Join / Linux Training / Board