I also have the same problem on Windows 7, Jython 2.5.2, JDK 1.6.0_31 when I run Django on Jython.
On Monday 2012-04-16 14:57 (-0700), Chris Clark
As a follow up to this thread. I just re-tested the 2.5.x releases under<Chris.Clark@ingres.com> wrote:
> Pierre Thibault wrote:
>> 2011/6/27 Chris Clark<Chris.Clark@ingres.com
>> I've an odd issue where:
>> * Using the standalone jar file with 2.5.1 and then using CTRL-C to
>> interrupt a running script (small cherrypy app) works.
>> * Using the standalone jar file with 2.5.2 and then using CTRL-C to
>> interrupt a running script doesn't work.
>> NOTE I get similar behavior with a "normal" jython installation too
>> (with the jython wrapper script)
>> I have on OpenSuse 11.4 with Java 1.6.0_26 from Oracle and I don't
>> have this problem with Jython 2.5.2. Ctrl-C works well for me.
> Thanks for testing that out Pierre, you inspired me to test under
> Ubuntu (with Open JDK 1.6) and that also works correctly too.
> java version "1.6.0_0"
> OpenJDK Runtime Environment (build 1.6.0_0-b11)
> OpenJDK Client VM (build 1.6.0_0-b11, mixed mode, sharing)
> I also tested all 3 java versions that I happen to have installed.
> CTRL-C ignored (with Jython 2.5.2 but not 2.5.1):
> java version "1.6.0_02"
> Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
> Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)
> java version "1.6.0"
> Java(TM) SE Runtime Environment (build 1.6.0-b105)
> Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
> java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
> It is looking Windows/Jython specific at this point.
Windows 7 and 2.5.3b1 has the same problem, i.e. CTRL-C does not work
under Windows. Jython 2.5.1 is the "oldest" release where CTRL-C works.
java -jar jython.jar -c "import
... wait for it to serve then issue CTRL-C, nothing happens I have
to kill java.exe in the tast listk
I've since found there may be a patch for this:
(also related issue http://bugs.jython.org/issue1270 )
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
Jython-users mailing list