Zombie Process Handling
Is there a special meachanism in Linux to handle Zombie Processes?
|
what exactly is your question?
if you are asking if the kernel sees if a parent process is waiting for a child process it forked, then no....i dont think so.. if your parent doesnt wait for a child process and the child exits, it (child) would become a zombie...a condition that would go either when the parent process exits or when the system restarts |
Below is Beej's code snip and explanation for handling zombies under any *nix. Seems to work if you include the right headers.
Code:
sa.sa_handler = sigchld_handler; // reap all dead processes |
All times are GMT -5. The time now is 05:52 AM. |