Changeset 228 for branches/samba-3.2.x/source/smbd/notify_inotify.c
- Timestamp:
- May 26, 2009, 9:44:50 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/smbd/notify_inotify.c
r133 r228 26 26 #ifdef HAVE_INOTIFY 27 27 28 #if HAVE_SYS_INOTIFY_H 29 #include <sys/inotify.h> 30 #else 31 28 32 #ifdef HAVE_ASM_TYPES_H 29 33 #include <asm/types.h> … … 58 62 59 63 #endif 60 64 #endif 61 65 62 66 /* older glibc headers don't have these defines either */ … … 244 248 if (e == NULL) return; 245 249 246 if ( read(in->fd, e0, bufsize) != bufsize) {250 if (sys_read(in->fd, e0, bufsize) != bufsize) { 247 251 DEBUG(0,("Failed to read all inotify data\n")); 248 252 talloc_free(e0); … … 251 255 252 256 /* we can get more than one event in the buffer */ 253 while ( bufsize >= sizeof(*e)) {257 while (e && (bufsize >= sizeof(*e))) { 254 258 struct inotify_event *e2 = NULL; 255 259 bufsize -= e->len + sizeof(*e);
Note:
See TracChangeset
for help on using the changeset viewer.