Is it a zombie? Is it a zombie? unix unix

Is it a zombie?


In your example, the child process dies but the parent doesn't know about it's exit status. As such, the child (now zombie) is left in the process table.

Moreover, the parent continues to wait for the child and keeps running.


Yes it is zombie ... your Child process dies and your parent does not know the exit status of child process. and parent process is running even after child dies.

ZOMBIE process: when child process dies parent process still running. in this case parent process does not know the exit status of child.
To avoid this parent process uses wait or waitpid to know the child status.


Adding on to other responses.. If the opposite were to happen i.e. Parent dies before the child process completes, then the child would become an orphan and would later be "adopted" by a special system process called init.