mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-08 17:24:06 +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;
|
readbuf = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* registers fsevents functions.
|
|
||||||
*/
|
|
||||||
extern void
|
|
||||||
register_fsevents(lua_State *L)
|
|
||||||
{
|
|
||||||
/* nothing */
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* opens and initalizes fsevents.
|
* opens and initalizes fsevents.
|
||||||
*/
|
*/
|
||||||
|
4
lsyncd.c
4
lsyncd.c
@ -1380,10 +1380,6 @@ register_lsyncd(lua_State *L)
|
|||||||
#ifdef LSYNCD_WITH_INOTIFY
|
#ifdef LSYNCD_WITH_INOTIFY
|
||||||
register_inotify(L);
|
register_inotify(L);
|
||||||
lua_settable(L, -3);
|
lua_settable(L, -3);
|
||||||
#endif
|
|
||||||
#ifdef LSYNCD_WITH_FSEVENTS
|
|
||||||
register_fsevents(L);
|
|
||||||
lua_settable(L, -3);
|
|
||||||
#endif
|
#endif
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
if (lua_gettop(L)) {
|
if (lua_gettop(L)) {
|
||||||
|
1
lsyncd.h
1
lsyncd.h
@ -159,7 +159,6 @@ extern void open_fanotify(lua_State *L);
|
|||||||
* /dev/fsevents
|
* /dev/fsevents
|
||||||
*/
|
*/
|
||||||
#ifdef LSYNCD_WITH_FSEVENTS
|
#ifdef LSYNCD_WITH_FSEVENTS
|
||||||
extern void register_fsevents(lua_State *L);
|
|
||||||
extern void open_fsevents(lua_State *L);
|
extern void open_fsevents(lua_State *L);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ local tdir, srcdir, trgdir = mktemps()
|
|||||||
churn(srcdir, 10)
|
churn(srcdir, 10)
|
||||||
|
|
||||||
local logs = {}
|
local logs = {}
|
||||||
logs = {"-log", "Delay", "-log", "Exec"}
|
logs = {"-log", "Delay" }
|
||||||
|
|
||||||
local pid = spawn("./lsyncd", "-nodaemon", "-delay", "5",
|
local pid = spawn("./lsyncd", "-nodaemon", "-delay", "5",
|
||||||
"-rsyncssh", srcdir, "localhost", trgdir,
|
"-rsyncssh", srcdir, "localhost", trgdir,
|
||||||
@ -20,7 +20,7 @@ local pid = spawn("./lsyncd", "-nodaemon", "-delay", "5",
|
|||||||
cwriteln("waiting for Lsyncd to startup")
|
cwriteln("waiting for Lsyncd to startup")
|
||||||
posix.sleep(1)
|
posix.sleep(1)
|
||||||
|
|
||||||
churn(srcdir, 100)
|
churn(srcdir, 20)
|
||||||
|
|
||||||
cwriteln("waiting for Lsyncd to finish its jobs.")
|
cwriteln("waiting for Lsyncd to finish its jobs.")
|
||||||
posix.sleep(10)
|
posix.sleep(10)
|
||||||
|
Loading…
Reference in New Issue
Block a user