lua-users home
lua-l archive

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


> What is the proper way to terminate a running lua_State from another thread?

In ANSI C, you can do as in lua.c for handling signals: set a hook for
the running state and then raise an error. See laction and lstop in lua.c.
Of course, you don't need to do this only in response to signals being raised.
--lhf