[linux-elitists] Re: Yet another mozilla atrocity

Martin Pool mbp@samba.org
Mon Oct 6 21:37:15 PDT 2003


On  6 Oct 2003, Nick Moffitt <nick@zork.net> wrote:
> begin  Martin Pool  quotation:
> > How does the application know when to reload the changes?  Nick
> > suggested that it should poll the configuration files, which is
> > typical of the "oh it's so easy" response from people who haven't
> > really thought through the problem.  To make it not too laggy, you'd
> > need to poll at least every couple of seconds.  Is having every
> > application poll the disk every second really so elegant?  (Heaven
> > help anyone with home on NFS).  And of course you still have race
> > conditions, since you can't rely on locking.
> 
> 	I brought it up in response to storing timestamps for each
> configuration tag. 

You did mention that, but you also suggested polling mtimes to detect
changes:

> > GNOME is trying to progress beyond Unix's traditional
> > guess-edit-restart-repeat in a way that is more friendly to both
> > experts and novices.  That necessarily requires adding a layer, and
> > probably requires giving up directly editing configuration files.
                                                                   
>         Bullshit.  Poll the mtime of the config file, and slurp as
> needed.

This is not a very smart solution.

-- 
Martin 



More information about the linux-elitists mailing list