mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-12 14:17:47 +00:00
security check
This commit is contained in:
parent
8b2e05a681
commit
2f21d0f0b8
6
lsyncd.c
6
lsyncd.c
@ -1555,12 +1555,16 @@ masterloop(lua_State *L)
|
||||
}
|
||||
}
|
||||
|
||||
if (!observances_len) {
|
||||
logstring("Error",
|
||||
"Internal fail, no observances, no monitor!");
|
||||
exit(-1);
|
||||
}
|
||||
/* the great select */
|
||||
pr = pselect(
|
||||
observances[observances_len - 1].fd + 1,
|
||||
&rfds, &wfds, NULL,
|
||||
have_alarm ? &tv : NULL, &sigset);
|
||||
|
||||
if (pr >= 0) {
|
||||
/* walks through the observances calling ready/writey */
|
||||
observance_action = true;
|
||||
|
Loading…
Reference in New Issue
Block a user