lua-users home
lua-l archive

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



On Mon, May 18, 2020 at 12:43 PM Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> 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.

Yes. Variables declared with type sig_atomic_t should be volatile,
in general.


Well, that's a (small) 5.4 bug then 😀.

--