[issue14228] It is impossible to catch sigint on startup in python code
report at bugs.python.org
Mon Mar 19 19:56:44 CET 2012
Charles-François Natali <neologix at free.fr> added the comment:
I must be missing something, but I fail to see the problem here.
Basically, when SIGINT is received before the user code is run, it's caught by the default handler which prints a traceback and exits. What's wrong with that? Not catching SIGINT would result in an unclean exit, and I don't see how that would be an improvement.
The exit code may be a valid request, but that's another story.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list