lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> What is the current "state of Lua nation" on non-blocking script execution?

> http://lua-users.org/wiki/NonBlockingLuaExecution

> What is considered to be the best way to prevent untrusted Lua code
> from hanging up the system?

I would narrow my question.

Say, I set instruction count hook. If it is triggered (and some
condition is met -- given time passed, for example), I need to kill
Lua state. How do I kill it most gracefully? I'd like all allocated
resources to be freed. (I think it would be perfect to be able to
imitate conventional runtime error raised from the hook point. Not
sure if this is achievable though...)

Alexander.