This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nscd/14906] inotify failed when /etc/hosts file change


http://sourceware.org/bugzilla/show_bug.cgi?id=14906

--- Comment #3 from Bin Li <binli at opensuse dot org> 2012-12-03 10:42:29 UTC ---
Created attachment 6771
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6771
the patch for suggested fix

Miklos Szeredi 2012-10-18 11:04:49 UTC

I looked at the inotify code in nscd code and it's full of bugs.  Apparently
the cache pruning by inotify wasn't tested to any useful extent.  And latest
upstream version carries all those bugs too.  We can fix all these but that's a
whole little project.  Or there are some simpler options:

a) disable inotify completely and do it the old way (check file modification
times regularly)

b) enable inotify but also check modification times in case the inotify code
fails to work.

c) option b) plus something like comment 20

The attached patch does option b).  I've not tested it.

The glibc package maintainers will have to make the decision on how to fix it,
this patch is just a suggestion.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]