mirror of https://github.com/octoleo/lsyncd.git
This commit is contained in:
parent
83d0f90c65
commit
eadbb6a202
9
lsyncd.c
9
lsyncd.c
|
@ -859,7 +859,8 @@ static int callError;
|
|||
* Prior it pushed the callError handler.
|
||||
*/
|
||||
static void
|
||||
load_runner_func(lua_State *L, const char *name)
|
||||
load_runner_func(lua_State *L,
|
||||
const char *name)
|
||||
{
|
||||
printlogf(L, "Call", "%s()", name);
|
||||
|
||||
|
@ -1085,7 +1086,8 @@ masterloop(lua_State *L)
|
|||
* the buffer was too small to fit a filename.
|
||||
* double its size and try again. When using a lower
|
||||
* kernel and a filename > 2KB appears lsyncd
|
||||
* will fail. (but does a 2KB filename really happen?)*/
|
||||
* will fail. (but does a 2KB filename really happen?)
|
||||
*/
|
||||
readbuf_size *= 2;
|
||||
readbuf = s_realloc(readbuf, readbuf_size);
|
||||
continue;
|
||||
|
@ -1374,7 +1376,7 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
/* opens inotify */
|
||||
inotify_fd = inotify_init();
|
||||
inotify_fd = inotify_init1(IN_CLOEXEC);
|
||||
if (inotify_fd == -1) {
|
||||
printlogf(L, "Error",
|
||||
"Cannot create inotify instance! (%d:%s)",
|
||||
|
@ -1382,6 +1384,7 @@ main(int argc, char *argv[])
|
|||
return -1; // ERRNO
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
/* adds signal handlers *
|
||||
* listens to SIGCHLD, but blocks it until pselect()
|
||||
|
|
Loading…
Reference in New Issue