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

Antoine Pitrou report at bugs.python.org
Fri Mar 9 17:33:51 CET 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

Ok, I see. Would an option to disable the default SIGINT handlers (and let the OS kill the process) be an acceptable solution to your use case?

Keep in mind that letting the OS kill the process will bypass any destructors at the Python level, so for example some buffered file data may not be flushed properly, etc.

By the way, if I'm not mistaken, the problem is only with SIGINT, right?

----------
components: +Interpreter Core
title: SIGINT (Ctrl-C) not caught at startup -> It is impossible to catch sigint on startup in python code
type: crash -> enhancement
versions: +Python 3.3 -Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14228>
_______________________________________


More information about the Python-bugs-list mailing list