Editing /etc/hostname(in Debian) with vim will remove its inotify watch
- From: cee1 <fykcee1 gmail com>
- To: networkmanager-list gnome org
- Subject: Editing /etc/hostname(in Debian) with vim will remove its inotify watch
- Date: Fri, 22 Jan 2010 16:33:27 +0800
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]