Commit d2cb012f5ab1c7705d3f583183da06c88982db1e

Con Kolivas 2011-06-25T10:07:29

Detach the thread once created so we don't have to explicitly try and join it.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/cpu-miner.c b/cpu-miner.c
index bc9ea8c..3c78e25 100644
--- a/cpu-miner.c
+++ b/cpu-miner.c
@@ -499,6 +499,7 @@ static bool workio_submit_work(struct workio_cmd *wc)
 		applog(LOG_ERR, "Failed to create submit_thread");
 		return false;
 	}
+	pthread_detach(thr);
 
 	return true;
 }