aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2010-01-07 20:15:46 +0100
committerJon Lund Steffensen <jonlst@gmail.com>2010-01-07 20:15:46 +0100
commit9c3d89dc5288bf37462ed2f9905b57064898931b (patch)
tree258bb40360e7f6aaaeeeb6b59b2910349ba66dbf /src
parentHandle both INT and TERM signals as exit signals. (diff)
downloadredshift-ng-9c3d89dc5288bf37462ed2f9905b57064898931b.tar.gz
redshift-ng-9c3d89dc5288bf37462ed2f9905b57064898931b.tar.bz2
redshift-ng-9c3d89dc5288bf37462ed2f9905b57064898931b.tar.xz
Fix: Terminate loop immediately on second exit signal.
Diffstat (limited to 'src')
-rw-r--r--src/redshift.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/redshift.c b/src/redshift.c
index e924d61..2c6ed7f 100644
--- a/src/redshift.c
+++ b/src/redshift.c
@@ -454,17 +454,17 @@ main(int argc, char *argv[])
/* On second signal stop the
ongoing transition */
short_trans = 0;
+ } else {
+ /* Make a short transition back to
+ 6500K */
+ short_trans_create = 1;
+ short_trans_begin = 0;
+ short_trans_len = 2;
+ adjustment_alpha = 1.0;
+
+ exiting = 0;
+ done = 1;
}
-
- /* Make a short transition back to
- 6500K */
- short_trans_create = 1;
- short_trans_begin = 0;
- short_trans_len = 2;
- adjustment_alpha = 1.0;
-
- exiting = 0;
- done = 1;
}
/* Read timestamp */