def shutdownHandler(self, n, frame):
        """ Initiate a request to shutdown cleanly on SIGINT."""
        print "Request to shut down."
        self.shutdownRequest = True
 Initiate a request to shutdown cleanly on SIGINT.
recipes/Python/162764_Cooperative_multithreading_generators_signal/recipe-162764.py