[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: signal-safety of lua_sethook
- From: Reuben Thomas <rrt@...>
- Date: Wed, 1 Feb 2012 20:30:46 +0000
What's the latest on this?
http://lua-users.org/lists/lua-l/2006-10/msg00427.html suggests that
lua_sethook is not, in fact, signal safe, contrary to the assertion in
the source (which also mentions "asynchronous use"). The manual makes
no guarantee at all.
I use lua_sethook in luaposix inside a signal handler, in order to
implement Lua signal handlers. Is there a safer way to achieve this?
--
http://rrt.sc3d.org