** 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. */
| 122 | ** interpreter. |
| 123 | */ |
| 124 | static void laction (int i) { |
| 125 | signal(i, SIG_DFL); /* if another SIGINT happens, terminate process */ |
| 126 | lua_sethook(globalL, lstop, LUA_MASKCALL | LUA_MASKRET | LUA_MASKCOUNT, 1); |
| 127 | } |
| 128 | |
| 129 | |
| 130 | static void print_usage (const char *badoption) { |
nothing calls this directly
no test coverage detected