lua-users home
lua-l archive

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


On Mon, May 18, 2020 at 8:53 AM Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
Signals are hard to handle in ISO C. ISO C gives very little guarantees
and mechanisms to handle them. Likewise, Lua never gave any guarantees
about its handling of signals, and Lua 5.4 follows this pattern. Like
with 'errno', improvements are welcome, but don't expect any reliable
guarantees about signal handling.


A question: should the 'trap' field in struct CallInfo not be declared 'volatile' as it is being set from a signal handler?
The 'hook' value in lua_State is declared volatile.

_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org