[issue14228] It is impossible to catch sigint on startup in python code

Charles-François Natali report at bugs.python.org
Tue Mar 20 12:46:33 CET 2012

Charles-François Natali <neologix at free.fr> added the comment:

> Or we could change Py_InitializeEx() to setup the signal handlers
> after having imported the site module:

Note that I don't really like this solution, because it's better to
setup handlers for fatal signals (SIGPIPE, SIGXF...) before executing
arbitrary Python code (site).


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list