** Function to be called at a C signal. Because a C signal cannot ** just change a Lua state (as there is no proper synchronization), ** this function only sets a hook that, when called, will stop the ** interpreter. */
| 54 | ** interpreter. |
| 55 | */ |
| 56 | static void laction (int i) { |
| 57 | signal(i, SIG_DFL); /* if another SIGINT happens, terminate process */ |
| 58 | lua_sethook(globalL, lstop, LUA_MASKCALL | LUA_MASKRET | LUA_MASKCOUNT, 1); |
| 59 | } |
| 60 | |
| 61 | |
| 62 | static void print_usage (const char *badoption) { |
nothing calls this directly
no test coverage detected