Re: FVWM: fvwm2rc + restart

From: Perry Hutchison <phutchis_at_beaverton.windriver.com>
Date: Tue, 2 Apr 2002 15:42:25 -0800 (PST)

> Hey, I was thinking about something as I was rewriting part of
> my configuration, and I thought it would be neat if there were
> an option in fvwm2 where you can have fvwm2 automatically reload
> when you change the .fvwm2rc. If no option like that exists,
> what do you think about it?

There a couple of practical concerns.

* In order to do this, fvwm2 would have to periodically "stat" the
  .fvwm2rc file and check for the date and/or size having changed. If
  the stat were done only occasionally, there would be a delay between
  updating the file and the auto-restart. If done frequently, it
  would become a significant overhead in its own right.

* How would you avoid a race condition, wherein fvwm2 sees the changed
  file and decides to restart halfway through a rewrite? Most text
  editors don't lock files while writing them.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Tue Apr 02 2002 - 17:43:20 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:52 BST