[issue11650] CTRL-Z causes interpreter exit

Charles-Francois Natali report at bugs.python.org
Wed Mar 23 15:05:46 CET 2011


Charles-Francois Natali <neologix at free.fr> added the comment:

What's the problem here ?
CTRL-Z causes the controlling terminal to send a SIGTSTP to the process, and the default handler stops the process, pretty much like a SIGSTOP.
If you don't want that to happen:
import signal
signal.signal(signal.SIGTSTP, signal.SIG_IGN)

----------
nosy: +neologix

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


More information about the Python-bugs-list mailing list