Killing a runaway PythonInterpreter

View: New views
1 Messages — Rating Filter:   Alert me  

Killing a runaway PythonInterpreter

by James Pettit :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is partially in reference to "RE: [Jython-users] kill a timed out python script in multithreade d Jython environment". I have a PythonInterpreter that has executed a script (via execfile) with a "while" loop that never ends.

I'd like some way for the controlling thread to kill the interpreter (so I can start a new one, with a modified version of the script). The link given in that post, <
http://sourceforge.net/mailarchive/message.php?msg_id=6315806>, is inactive, and is the last bit of info I could find on the subject. I've tried "cleanup" in PythonInterpreter, and "exit" in PySystemState... no luck. Of course, killing the process works, so something can stop the dang thing. Any hints?
- James

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jython-users mailing list
Jython-users@...
https://lists.sourceforge.net/lists/listinfo/jython-users
LightInTheBox - Buy quality products at wholesale price!