GUnixFileMonitor: Use /proc/mounts for monitoring mount changes
authorDavid Zeuthen <davidz@redhat.com>
Thu, 29 Sep 2011 19:09:43 +0000 (15:09 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Thu, 29 Sep 2011 19:16:51 +0000 (15:16 -0400)
commit55065461bfc5ace53e736dfa8181909e918c161b
tree498cbb571a6ebc736f2fa6a0e9b4721b3a39ced9
parent6d05f684eb0193f7b272cbbe42cd7e72eb0f5174
GUnixFileMonitor: Use /proc/mounts for monitoring mount changes

On recent Linux distros /etc/mtab is just a symlink to /proc/mounts
and GFileMonitor does not work there because of how the kernel conveys
that the file changes.

https://bugzilla.gnome.org/show_bug.cgi?id=660511

Signed-off-by: David Zeuthen <davidz@redhat.com>
gio/gunixmounts.c