Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Tobias Klausmann <klausman@g.o>
Subject: Re: Lib_users, a post-upgrade helper
Date: Wed, 28 Jul 2010 17:55:22 +0200
Hi! 

On Wed, 28 Jul 2010, Jeroen Roovers wrote:
> > While that approach has the advantage of not only catching mapped
> > files but every open FD, I am thinking about implementing something
> > similar with lib_users (but using /proc/<pid>/fd/).
> 
> The great advantage would be that it also discovers changed runtime
> configuration files. Not that it would also disregard "trivial"
> updates, of course, but by pointing out the filenames, an admin having
> just run etc-update could easily figure that out.

I suspect that wouldn't work in most cases since programs
typically close FDs after reading the config file(s)*. The one
program I know of that doesn't, uses the FD to find out the file
changed and does file-was-deleted handling internally.

Still, if config files aren't the only useful case for checking
the FDs, it might be worthwhile to implement.

Regards,
Tobias

* This is a /good/ thing.


References:
Lib_users, a post-upgrade helper
-- Tobias Klausmann
Re: Lib_users, a post-upgrade helper
-- Jeroen Roovers
Re: Lib_users, a post-upgrade helper
-- Jeroen Roovers
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Lib_users, a post-upgrade helper
Next by thread:
Re: Lib_users, a post-upgrade helper
Previous by date:
Re: Lib_users, a post-upgrade helper
Next by date:
Re: Lib_users, a post-upgrade helper


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.