mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-06 08:40:44 +00:00
oops unbreak fsevents register
This commit is contained in:
parent
82bdb8e0dc
commit
2a6955d4c6
10
fsevents.c
10
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.
|
||||
*/
|
||||
|
4
lsyncd.c
4
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)) {
|
||||
|
1
lsyncd.h
1
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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user