Editing /etc/hostname(in Debian) with vim will remove its inotify watch



Hi all,

It seems editing /etc/hostname with vim, �the original /etc/hostname will be removed first, then the inotify watch is also removed.�The following changes of�/etc/hostname are detectable by nm-system-settings, unless restart it.

BTW,��"if (!(evt.mask & IN_IGNORED))"�(src/system-settings/nm-inotify-helper.c: line 109) will be true on the remove event, but evt.mask &�IN_DELETE_SELF is not true, seems not as described in�inotify's�man page.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]