On Thu, Jan 3, 2013 at 6:38 PM, Lennart Poettering <lenn...@poettering.net> wrote: > On Wed, 02.01.13 22:59, Stef Bon (stef...@gmail.com) wrote:
>> sorry for the offtopic question here, but I do not know a better place for >> it. >> >> I'm building a lockmonitor. I thought that would be just as easy as with >> the /proc/self/mountinfo "file". > > The poll-ability of /proc/self/mountinfo is a feature that has been > added specifically for that one file. Only very few other files in /proc > can do this (only swaps and the host/domainname files afaik). If you > want this for for other files in /proc you'd first have to patch the > kernel. FWIW, adding poll() support would look like something like this: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=66d7dd518ae413a383ab2c6c263cc30617329842 Kay _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel