mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-13 06:37:51 +00:00
reset observances_lean on cleanup as well
This commit is contained in:
parent
e159bf5f31
commit
150616406e
8
lsyncd.c
8
lsyncd.c
@ -921,7 +921,6 @@ l_configure(lua_State *L)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static const luaL_reg lsyncdlib[] = {
|
static const luaL_reg lsyncdlib[] = {
|
||||||
{"addtoclock", l_addtoclock },
|
{"addtoclock", l_addtoclock },
|
||||||
{"clockbefore", l_clockbefore },
|
{"clockbefore", l_clockbefore },
|
||||||
@ -946,13 +945,13 @@ static const luaL_reg lsyncdlib[] = {
|
|||||||
* Dummy variable whos address is used as the cores index in the lua registry
|
* Dummy variable whos address is used as the cores index in the lua registry
|
||||||
* to the lua runners function table in the lua registry.
|
* to the lua runners function table in the lua registry.
|
||||||
*/
|
*/
|
||||||
static int runner;
|
static int runner = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dummy variable whos address is used as the cores index n the lua registry
|
* Dummy variable whos address is used as the cores index n the lua registry
|
||||||
* to the lua runners error handler.
|
* to the lua runners error handler.
|
||||||
*/
|
*/
|
||||||
static int callError;
|
static int callError = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pushes a function from the runner on the stack.
|
* Pushes a function from the runner on the stack.
|
||||||
@ -1521,6 +1520,9 @@ main1(int argc, char *argv[])
|
|||||||
obs->tidy(obs);
|
obs->tidy(obs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
observances_len = 0;
|
||||||
|
nonobservances_len = 0;
|
||||||
|
observance_action = false;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
/* frees logging categories */
|
/* frees logging categories */
|
||||||
|
Loading…
Reference in New Issue
Block a user