oops unbreak fsevents register

This commit is contained in:
Axel Kittenberger 2010-12-16 12:44:00 +00:00
parent 82bdb8e0dc
commit 2a6955d4c6
4 changed files with 2 additions and 17 deletions

View File

@ -332,16 +332,6 @@ fsevents_tidy(struct observance *obs)
readbuf = NULL;
}
/**
* registers fsevents functions.
*/
extern void
register_fsevents(lua_State *L)
{
/* nothing */
}
/**
* opens and initalizes fsevents.
*/

View File

@ -1380,10 +1380,6 @@ register_lsyncd(lua_State *L)
#ifdef LSYNCD_WITH_INOTIFY
register_inotify(L);
lua_settable(L, -3);
#endif
#ifdef LSYNCD_WITH_FSEVENTS
register_fsevents(L);
lua_settable(L, -3);
#endif
lua_pop(L, 1);
if (lua_gettop(L)) {

View File

@ -159,7 +159,6 @@ extern void open_fanotify(lua_State *L);
* /dev/fsevents
*/
#ifdef LSYNCD_WITH_FSEVENTS
extern void register_fsevents(lua_State *L);
extern void open_fsevents(lua_State *L);
#endif

View File

@ -11,7 +11,7 @@ local tdir, srcdir, trgdir = mktemps()
churn(srcdir, 10)
local logs = {}
logs = {"-log", "Delay", "-log", "Exec"}
logs = {"-log", "Delay" }
local pid = spawn("./lsyncd", "-nodaemon", "-delay", "5",
"-rsyncssh", srcdir, "localhost", trgdir,
@ -20,7 +20,7 @@ local pid = spawn("./lsyncd", "-nodaemon", "-delay", "5",
cwriteln("waiting for Lsyncd to startup")
posix.sleep(1)
churn(srcdir, 100)
churn(srcdir, 20)
cwriteln("waiting for Lsyncd to finish its jobs.")
posix.sleep(10)