mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-05-29 06:30:46 +00:00
no need for lsyncd.fsevents lib
This commit is contained in:
parent
b784ab23c2
commit
82bdb8e0dc
16
fsevents.c
16
fsevents.c
|
@ -96,10 +96,6 @@ struct kfs_event {
|
||||||
*/
|
*/
|
||||||
static int fsevents_fd = -1;
|
static int fsevents_fd = -1;
|
||||||
|
|
||||||
static const luaL_reg lfseventslib[] = {
|
|
||||||
{NULL, NULL}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* event names */
|
/* event names */
|
||||||
/*static const char *eventNames[FSE_MAX_EVENTS] = {
|
/*static const char *eventNames[FSE_MAX_EVENTS] = {
|
||||||
"CREATE_FILE",
|
"CREATE_FILE",
|
||||||
|
@ -297,10 +293,8 @@ fsevents_ready(lua_State *L, struct observance *obs)
|
||||||
exit(-1); // ERRNO
|
exit(-1); // ERRNO
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
ptrdiff_t len;
|
ptrdiff_t len = read (fsevents_fd, readbuf, readbuf_size);
|
||||||
int err;
|
int err = errno;
|
||||||
len = read (fsevents_fd, readbuf, readbuf_size);
|
|
||||||
err = errno;
|
|
||||||
if (len == 0) {
|
if (len == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -343,9 +337,9 @@ fsevents_tidy(struct observance *obs)
|
||||||
* registers fsevents functions.
|
* registers fsevents functions.
|
||||||
*/
|
*/
|
||||||
extern void
|
extern void
|
||||||
register_fsevents(lua_State *L) {
|
register_fsevents(lua_State *L)
|
||||||
lua_pushstring(L, "fsevents");
|
{
|
||||||
luaL_register(L, "fsevents", lfseventslib);
|
/* nothing */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user