Commit b643b56a9523418f138f810fe67877e5c36d9a37

Con Kolivas 2011-08-24T23:14:52

Allow LP to reset block detect and block detect lp flags to know who really came first.

diff --git a/main.c b/main.c
index 3395c21..9e025c1 100644
--- a/main.c
+++ b/main.c
@@ -2073,8 +2073,6 @@ static void restart_threads(void)
 {
 	int i, stale;
 
-	block_changed = BLOCK_NONE;
-
 	/* Discard staged work that is now stale */
 	stale = discard_stale();
 
@@ -4115,11 +4113,6 @@ static void *watchdog_thread(void *userdata)
 			mutex_unlock(&curses_lock);
 		}
 
-		if (unlikely(work_restart[watchdog_thr_id].restart)) {
-			restart_threads();
-			work_restart[watchdog_thr_id].restart = 0;
-		}
-
 		gettimeofday(&now, NULL);
 
 		for (i = 0; i < total_pools; i++) {