fsnotifier: process inotify events in batches

This commit is contained in:
Roman Shevchenko
2013-06-04 13:38:32 +04:00
parent b462ae3537
commit f19adbd5ab
+2
View File
@@ -223,6 +223,8 @@ static void main_loop() {
struct timeval timeout;
while (true) {
usleep(50000);
FD_ZERO(&rfds);
FD_SET(input_fd, &rfds);
FD_SET(inotify_fd, &rfds);