previous |
start |
next
exit
int exit(int status);
- A SIGCHLD signal is sent to the parent process.
- This process is terminated and all memory is released, any open
files are closed
- If the parent hasn't waited for this child, the process table
entry remains and holds the exit status value and this process
becomes a zombie.
- If this process has any zombie children, they are deleted
completely.
- If this process has any children that have not terminated, each
child is "adopted" by the init process.
previous |
start |
next