Is there an easy way of making CherryPy perform an os._exit(0) once it gets a ^C interrupt?
It would normally wait for all the threads to terminate which is not useful for debugging as I expect it to shut down immediately.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See https://cherrypy.readthedocs.org/en/3.3.0/refman/process/plugins/signalhandler.html.
are the default handlers;
SIGINTfromCtrl-Cisn’t there (so I don’t know if it’s going the same asSIGTERMor what) but you could add it with whatever handler you want, including one that callssys._exit.