This commit is contained in:
feng lv 2021-10-13 02:11:15 +00:00
parent b2a17cb320
commit 0409b775bf

View File

@ -65,9 +65,10 @@ void DirectoryWatcherBase::watchFunc()
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wreserved-identifier"
FD_ZERO(&fds);
FD_SET(fd, &fds);
#pragma clang diagnostic pop
FD_SET(fd, &fds);
struct timeval tv;
tv.tv_sec = 0;
tv.tv_usec = 200000;