Undestanding basics of Zombie process with example : Advanced Linux Programming # Tutorial - 7

preview_player
Показать описание
when a child process dies and has not been wait on, it will usually show up in a ps listing as "defunct". It will remain this way until the parent waits on it,
when the parent dies before it wait()s for the child (assuming it is not ignoring SIGCHLD), the child is reparented to the init process (PID 1). This is not a problem if the child is still living well and under control. However, if the child is already defunct, we're in a bit of a bind. See, the original parent can no longer wait(), since it's dead.
Рекомендации по теме
Комментарии
Автор

Who cares whether he is pronouncing JED or Z or ZED. Very well explained. Respect!

dhimandas
Автор

i'm new to linux, what is a "jail process"?

schwarzarbyter
Автор

Why wasn't the printf statement in the if case executed?

GamersCreedTeam
Автор

Do we really need to worry about zombie processes or is it better to ignore them ?

santuchinu
Автор

why run ps this way and not "ps aux"?

mariesene
Автор

why it is not printing the printf statement inside the if{} block. Please help.

ManzoorHussain-gzvk
Автор

Instead of an int, doesn't a fork return a value of type pid_t?

NOLAMarathon
join shbcf.ru