mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-10-31 18:52:29 +00:00
rsyncssh has to be recursive as well, since a move might have been split. fixed a classical wrong errno issue
This commit is contained in:
parent
2a6955d4c6
commit
83136fc6cd
@ -358,6 +358,7 @@ open_fsevents(lua_State *L)
|
||||
.fd = &fsevents_fd,
|
||||
};
|
||||
int fd = open(DEV_FSEVENTS, O_RDONLY);
|
||||
int err = errno;
|
||||
printlogf(L, "Warn",
|
||||
"Using /dev/fsevents which is considered an OSX internal interface.");
|
||||
printlogf(L, "Warn",
|
||||
@ -368,7 +369,7 @@ open_fsevents(lua_State *L)
|
||||
if (fd < 0) {
|
||||
printlogf(L, "Error",
|
||||
"Cannot access %s monitor! (%d:%s)",
|
||||
DEV_FSEVENTS, errno, strerror(errno));
|
||||
DEV_FSEVENTS, err, strerror(err));
|
||||
exit(-1); // ERRNO
|
||||
}
|
||||
|
||||
|
@ -3211,6 +3211,7 @@ local default_rsyncssh = {
|
||||
spawn(elist, "/usr/bin/rsync",
|
||||
"<", zPaths,
|
||||
config.rsyncOps,
|
||||
"-r",
|
||||
"--from0",
|
||||
"--files-from=-",
|
||||
config.source,
|
||||
|
@ -20,7 +20,7 @@ local pid = spawn("./lsyncd", "-nodaemon", "-delay", "5",
|
||||
cwriteln("waiting for Lsyncd to startup")
|
||||
posix.sleep(1)
|
||||
|
||||
churn(srcdir, 20)
|
||||
churn(srcdir, 100)
|
||||
|
||||
cwriteln("waiting for Lsyncd to finish its jobs.")
|
||||
posix.sleep(10)
|
||||
|
Loading…
Reference in New Issue
Block a user