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 /examples/comprehensive | |
parent | m deps (diff) | |
download | blueshift-a8e4d9a2493426c77eba1b3a33a865eb4b715463.tar.gz blueshift-a8e4d9a2493426c77eba1b3a33a865eb4b715463.tar.bz2 blueshift-a8e4d9a2493426c77eba1b3a33a865eb4b715463.tar.xz |
fix infinite recursion bug on exit after SIGUSR11.2
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples/comprehensive')
-rw-r--r-- | examples/comprehensive | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/comprehensive b/examples/comprehensive index aa69f7d..9b9bf36 100644 --- a/examples/comprehensive +++ b/examples/comprehensive @@ -260,6 +260,10 @@ if get_dayness is not None: # Transition on exit in the same way, calculated on exit. old_signal_SIGTERM = signal_SIGTERM + if 'SIGTERM' not in conf_storage: + conf_storage['SIGTERM'] = old_signal_SIGTERM + else: + old_signal_SIGTERM = conf_storage['SIGTERM'] def signal_SIGTERM(signum, frame): global fadeout_time, fadeout_steps fadeout_time = 5 * (1 - get_dayness()) |