in reply to Killing a Forked Subprocess

If your child process is spawning other processes, you're going to need a signal less drastic than a kill -9. Use a signal that can be trapped. And your child process is going to need to cooperate by setting up a signal handler and voluntarily going to the grave.