[Date Prev][Date Next][Thread Prev][Thread Next]
- 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?