Is it possible to use lua_sethook from luajit 2 with compiled code? I need to use it as I need to terminate the lua engine from an external thread. This is in the case where the lua engine is running code that is compiled and in an infinite loop. Thanks Rajan