aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-01 11:42:33 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-01 11:42:33 -0300
commitb795d4b561dcc295379d363a676ddec75d67068c (patch)
tree65bbc17d196a742648c5f382fd20a3cb171109e2 /lua.c
parentc371413530a1bd432f4478e6e21299d7b8b35205 (diff)
downloadlua-b795d4b561dcc295379d363a676ddec75d67068c.tar.gz
lua-b795d4b561dcc295379d363a676ddec75d67068c.tar.bz2
lua-b795d4b561dcc295379d363a676ddec75d67068c.zip
details
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lua.c b/lua.c
index 6ff353c7..58c4d28a 100644
--- a/lua.c
+++ b/lua.c
@@ -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
61static void laction (int i) { 61static 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);