Fix forking
-
When forking, don't repond to a pause request in the parent after the child has already responded
-
use waitpid() instead of wait() because wait can race with other wait() calls in the program
When forking, don't repond to a pause request in the parent after the child has already responded
use waitpid() instead of wait() because wait can race with other wait() calls in the program