Steffen Daode Nurpmeso <sdao...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue11650>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to