Stop devices thread if the program ends.

Fri, 27 Nov 2015 22:00:23 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 27 Nov 2015 22:00:23 +0100
changeset 437
5664743eaf2f
parent 436
4df9ae3095f8
child 438
7d1ec160d751

Stop devices thread if the program ends.

thermferm/devices.c file | annotate | diff | comparison | revisions
--- a/thermferm/devices.c	Thu Nov 26 22:52:48 2015 +0100
+++ b/thermferm/devices.c	Fri Nov 27 22:00:23 2015 +0100
@@ -953,6 +953,8 @@
 	     */
 	    usleep(10000);
 	}
+	if (my_shutdown)
+	    break;
 	/*
 	 * Delay a bit after all devices
 	 */

mercurial