Commit c1ad218fc9c9cf3c1d11e59ca1695be66aeaee21

ckolivas 2014-03-03T13:21:34

Make __kill_work itself also be a completion timeout.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index c2d56e7..0df05b4 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3560,7 +3560,7 @@ static void __kill_work(void)
 /* This should be the common exit path */
 void kill_work(void)
 {
-	__kill_work();
+	cg_completion_timeout(&__kill_work, NULL, 5000);
 
 	quit(0, "Shutdown signal received.");
 }