[systemd-devel] Offtopic question.

Kay Sievers kay at vrfy.org
Thu Jan 3 10:48:34 PST 2013


On Thu, Jan 3, 2013 at 6:38 PM, Lennart Poettering
<lennart at poettering.net> wrote:
> On Wed, 02.01.13 22:59, Stef Bon (stefbon at 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


More information about the systemd-devel mailing list