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

Antoine Pitrou report at bugs.python.org
Mon Mar 26 15:43:39 CEST 2012


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

> Why an environment variable instead of a command line switch (as
> suggested by Ian Jackson)? Shouldn't a script be able to decide for
> itself how it handles signals?

Because the available space for command line switches is rather limited, and this isn't an important option.

This issue applies only to POSIX systems AFAIK, and it's easy to force an env var when running an executable ("MYENVVAR=foo python ...").

----------

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


More information about the Python-bugs-list mailing list