Author sdaoden
Recipients ezio.melotti, neologix, sdaoden, vstinner
Date 2011-03-23.14:31:34
SpamBayes Score 3.47034e-08
Marked as misclassified No
Message-id <20110323143110.GG33873@sherwood.local>
In-reply-to <1300889146.47.0.928753429011.issue11650@psf.upfronthosting.co.za>
Content
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 $
History
Date User Action Args
2011-03-23 14:31:35sdaodensetrecipients: + sdaoden, vstinner, ezio.melotti, neologix
2011-03-23 14:31:35sdaodenlinkissue11650 messages
2011-03-23 14:31:34sdaodencreate