util-src/signal.c
changeset 10484 94cacf9fd0ae
parent 9154 fee3933ff346
child 10803 763bb2ce3f60
equal deleted inserted replaced
10483:d362934437eb 10484:94cacf9fd0ae
   162 static lua_State *Lsig = NULL;
   162 static lua_State *Lsig = NULL;
   163 static lua_Hook Hsig = NULL;
   163 static lua_Hook Hsig = NULL;
   164 static int Hmask = 0;
   164 static int Hmask = 0;
   165 static int Hcount = 0;
   165 static int Hcount = 0;
   166 
   166 
   167 int signals[MAX_PENDING_SIGNALS];
   167 static int signals[MAX_PENDING_SIGNALS];
   168 int nsig = 0;
   168 static int nsig = 0;
   169 
   169 
   170 static void sighook(lua_State *L, lua_Debug *ar) {
   170 static void sighook(lua_State *L, lua_Debug *ar) {
   171 	(void)ar;
   171 	(void)ar;
   172 	/* restore the old hook */
   172 	/* restore the old hook */
   173 	lua_sethook(L, Hsig, Hmask, Hcount);
   173 	lua_sethook(L, Hsig, Hmask, Hcount);