diff options
-rw-r--r-- | lua.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.78 2002/02/15 15:15:10 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.79 2002/03/27 18:00:13 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -59,8 +59,7 @@ static void lstop (void) { | |||
59 | 59 | ||
60 | 60 | ||
61 | static void laction (int i) { | 61 | static void laction (int i) { |
62 | (void)i; /* to avoid warnings */ | 62 | signal(i, SIG_DFL); /* if another SIGINT happens before lstop, |
63 | signal(SIGINT, SIG_DFL); /* if another SIGINT happens before lstop, | ||
64 | terminate process (default action) */ | 63 | terminate process (default action) */ |
65 | old_linehook = lua_setlinehook(L, (lua_Hook)lstop); | 64 | old_linehook = lua_setlinehook(L, (lua_Hook)lstop); |
66 | old_callhook = lua_setcallhook(L, (lua_Hook)lstop); | 65 | old_callhook = lua_setcallhook(L, (lua_Hook)lstop); |