lua-users home
lua-l archive

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


I think we need a general solution for this problem.

While a Lua script executes Lua bytecode, it can be stopped by injecting a debug hook. But once it is inside a C function, standard or third-party, nothing at all can be done (short of killing the process). Why cannot we have an atomic flag in the Lua state structure that can be set whenever we want to abort execution, which can then be checked by potentially long running C functions? Not saying this is a panacea, but this is something which would simplify building a sandbox.

Cheers,
V.