[prev in list] [next in list] [prev in thread] [next in thread] 

List:       suse-programming-e
Subject:    Re: [suse-programming-e]  having a daemon monitor its own shared libraries?
From:       Per Jessen <per () computer ! org>
Date:       2006-08-09 16:01:40
Message-ID: ebd0t4$srr$1 () saturn ! local ! net
[Download RAW message or body]

Jerry Feldman wrote:

>> Also, by default inotify will follow symlinks by default, which is
>> quite handy.  The actual library in this case is
>> "/usr/lib/libclamav.so.1.0.17", but of course it has a few symlinks,
>> so I just monitor "/usr/lib/libclamav.so" - I would still prefer not
>> having to hardcode "/usr/lib", but I can live with it :-)
>
> What happens in the case where you change the location of a symbol in
> the shared library.

I'm probably not quite understanding your question, but any change in
the library leads to a new library being copied to the target system. 
When my daemon detects a change to the library file, it'll close up
shop, do some minimal clean-up and restart using exec(argv[0],argv).


/Per Jessen, Zürich


-- 
To unsubscribe, email: suse-programming-e-unsubscribe@suse.com
For additional commands, email: suse-programming-e-help@suse.com
Archives can be found at: http://lists.suse.com/archive/suse-programming-e

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic