[issue11650] CTRL-Z causes interpreter exit

Steffen Daode Nurpmeso report at bugs.python.org
Wed Mar 23 15:31:35 CET 2011


Steffen Daode Nurpmeso <sdaoden at googlemail.com> added the comment:

On Wed, Mar 23, 2011 at 02:05:46PM +0000, Charles-Francois Natali wrote:
> import signal
> signal.signal(signal.SIGTSTP, signal.SIG_IGN)

15:27 ~/tmp $ python3
Python 3.3a0 (default:4a5782a2b074, Mar 21 2011, 15:20:28) 
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more 
information.
>>> import signal
[56457 refs]
>>> signal.signal(signal.SIGCONT, lambda sig,frame: print('GOT SIG', sig))
0
[56488 refs]
>>> ^Z
[1]+  Stopped                 python3
15:29 ~/tmp $ fg
python3
GOT SIG 19

[56489 refs]
[36546 refs]
15:29 ~/tmp $

----------

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


More information about the Python-bugs-list mailing list