summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-21 01:10:10 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-21 01:10:10 +0100
commita8e4d9a2493426c77eba1b3a33a865eb4b715463 (patch)
tree333afe9eb0c2040d4fd1f937b0bbca438609ec96 /examples
parentm deps (diff)
downloadblueshift-1.2.tar.gz
blueshift-1.2.tar.bz2
blueshift-1.2.tar.xz
fix infinite recursion bug on exit after SIGUSR11.2
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/comprehensive4
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())