moonbridge

diff moonbridge.c @ 284:28aab22e68b6

New implementation of SIGTERM handling
author jbe
date Sun Jun 11 00:02:43 2017 +0200 (2017-06-11)
parents 245406b9e43c
children 524bb61496b5
line diff
     1.1 --- a/moonbridge.c	Fri Jun 09 18:33:57 2017 +0200
     1.2 +++ b/moonbridge.c	Sun Jun 11 00:02:43 2017 +0200
     1.3 @@ -755,6 +755,7 @@
     1.4    char controlmsg;
     1.5    int fd;
     1.6    struct itimerval notimer = { { 0, }, { 0, } };
     1.7 +  moonbr_io_sigterm_setup(L);  // NOTE: should not fail
     1.8    lua_rawgetp(L, LUA_REGISTRYINDEX, moonbr_luakey_prepare_func(pool));
     1.9    if (lua_isnil(L, -1)) lua_pop(L, 1);
    1.10    else if (lua_pcall(L, 0, 0, 1)) {

Impressum / About Us