diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-21 01:10:10 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-21 01:10:10 +0100 |
commit | a8e4d9a2493426c77eba1b3a33a865eb4b715463 (patch) | |
tree | 333afe9eb0c2040d4fd1f937b0bbca438609ec96 /src/__main__.py | |
parent | m deps (diff) | |
download | blueshift-4078b34d5d5aaf6f9ed07645f4e80b1a3588ca74.tar.gz blueshift-4078b34d5d5aaf6f9ed07645f4e80b1a3588ca74.tar.bz2 blueshift-4078b34d5d5aaf6f9ed07645f4e80b1a3588ca74.tar.xz |
fix infinite recursion bug on exit after SIGUSR11.2
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-x | src/__main__.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/__main__.py b/src/__main__.py index 0d22f77..74c7ebe 100755 --- a/src/__main__.py +++ b/src/__main__.py @@ -31,8 +31,8 @@ PROGRAM_VERSION = '1.2' ## Set global variables global DATADIR, i_size, o_size, r_curve, g_curve, b_curve, clip_result, reset, panicgate global periodically, wait_period, fadein_time, fadeout_time, fadein_steps, fadeout_steps -global monitor_controller, running, continuous_run, panic, _globals_ -global signal_SIGTERM +global monitor_controller, running, continuous_run, panic, _globals_, conf_storage +global signal_SIGTERM, signal_SIGUSR1 from solar import * @@ -131,6 +131,13 @@ conf_opts = None configurations, with the first element being the configuration file ''' +conf_storage = {} +''' +:dict<?, ?> A place for you to store information that is required to survive + a configuration reload +''' + + def reset(): ''' Invoked to reset the displays |