Killing a thread

catlee at my-deja.com catlee at my-deja.com
Sun Jul 18 23:33:25 EDT 1999


Hi,

I'm writing a progrma where some user code is executed in a restricted
environment running in a separate thread.  Now, if the user is
malicious, s/he can just put 'while 1: 1+1'.  I'd like to be able to
recover from this.  Is there any way I can kill the thread that is stuck
in the infinite loop?

Thanks,
Chris


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




More information about the Python-list mailing list