Problem 2: Zombies!
The following code simulates a shell that executes ls
in each round.
The program will run without apparent problems. However, if you look at the system process...
Zombies appear!!
This is the consequence of the mishandling in the parent process- the parent ignores the SIGCHLD
signal.
Last updated