libresman
diff src/filewatch_linux.c @ 23:f8e5a1491275
win32 file change notification attempt1 (failed)
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 13 Feb 2014 13:17:07 +0200 |
parents | 174ddb6bf92a |
children |
line diff
1.1 --- a/src/filewatch_linux.c Wed Feb 12 22:32:30 2014 +0200 1.2 +++ b/src/filewatch_linux.c Thu Feb 13 13:17:07 2014 +0200 1.3 @@ -44,6 +44,10 @@ 1.4 { 1.5 int fd; 1.6 1.7 + if(res->nfd > 0) { 1.8 + return 0; /* already started a watch for this resource */ 1.9 + } 1.10 + 1.11 if((fd = inotify_add_watch(rman->inotify_fd, res->name, IN_MODIFY)) == -1) { 1.12 return -1; 1.13 }