Message4501

Author pekka.klarck
Recipients pekka.klarck
Date 2009-04-11.19:11:37
SpamBayes Score 7.07628e-08
Marked as misclassified No
Message-id <1239477098.64.0.370936696393.issue1313@psf.upfronthosting.co.za>
In-reply-to
Content
It seems that 'except KeyboardInterrupt' or even plain 'except' is not
enough to catch ctrl-c with Jython. This is unfortunate because it makes
it prevents stopping applications started from the command line gracefully. 

This problem can be tested with the attached script. When I execute it
with Jython (tested both with 2.2 and 2.5b3) on my OS X and press ctrl-c
it simply quits without even a traceback. With CPython it prints both
'KeyboardInterrupt' and 'Bye!' before exiting cleanly.

Issue 1746106 is probably related to this problem:
http://bugs.jython.org/issue1746106
History
Date User Action Args
2009-04-11 19:11:38pekka.klarcksetrecipients: + pekka.klarck
2009-04-11 19:11:38pekka.klarcksetmessageid: <1239477098.64.0.370936696393.issue1313@psf.upfronthosting.co.za>
2009-04-11 19:11:38pekka.klarcklinkissue1313 messages
2009-04-11 19:11:37pekka.klarckcreate