diff --git a/fsevents.c b/fsevents.c index c4ae8a1..9a4f933 100644 --- a/fsevents.c +++ b/fsevents.c @@ -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. */ diff --git a/lsyncd.c b/lsyncd.c index 724a238..8fd9df2 100644 --- a/lsyncd.c +++ b/lsyncd.c @@ -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)) { diff --git a/lsyncd.h b/lsyncd.h index 1fd3a17..bf6ed00 100644 --- a/lsyncd.h +++ b/lsyncd.h @@ -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 diff --git a/tests/churn-rsyncssh.lua b/tests/churn-rsyncssh.lua index 8d632e5..3ebdeae 100755 --- a/tests/churn-rsyncssh.lua +++ b/tests/churn-rsyncssh.lua @@ -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)