Still In The Table
int main(void) {
pid_t p = fork();
if (p == 0)
_exit(3);
sleep(60); /* parent never calls wait() */
return 0;
}
You run this and immediately check ps in another terminal. What do you see for the child, and what eventually removes its process-table entry?
Sign in to answer questions and track your progress
Sign In