Subj : Re: how to terminate a script? To : gabor From : Igor Bukanov Date : Mon Sep 20 2004 04:19 pm gabor wrote: > hi, > > i've been using rhino to run javascript scripts.. > > what can i do if someone starts a script like > "while(1) {}" > ? > > is there a way to stop it's execution? > > > for now i am running the scripts in a different thread, > and ignore it after a given timeout, > so it will not block the execution of the whole program, > but that's all i can do..that thread will still run > > is there anything to stop a script from a different thread? > > or to execute it with a timeout value? > > thanks, > gabor > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&frame=right&th=dba8833f91a8809c&seekm=b0mvih%248k66%40ripley.netscape.com Regards, Igor .