lua-users home
lua-l archive

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


> 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.

-- Roberto