aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua.c b/lua.c
index 18f53c30..454ce12f 100644
--- a/lua.c
+++ b/lua.c
@@ -54,8 +54,9 @@ static void lstop (lua_State *L, lua_Debug *ar) {
54** interpreter. 54** interpreter.
55*/ 55*/
56static void laction (int i) { 56static void laction (int i) {
57 int flag = LUA_MASKCALL | LUA_MASKRET | LUA_MASKLINE | LUA_MASKCOUNT;
57 signal(i, SIG_DFL); /* if another SIGINT happens, terminate process */ 58 signal(i, SIG_DFL); /* if another SIGINT happens, terminate process */
58 lua_sethook(globalL, lstop, LUA_MASKCALL | LUA_MASKRET | LUA_MASKCOUNT, 1); 59 lua_sethook(globalL, lstop, flag, 1);
59} 60}
60 61
61 62