Using signals to terminate a child process