From d2cb012f5ab1c7705d3f583183da06c88982db1e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 25 Jun 2011 10:07:29 +1000 Subject: [PATCH] Detach the thread once created so we don't have to explicitly try and join it. --- cpu-miner.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpu-miner.c b/cpu-miner.c index bc9ea8c3..3c78e252 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; }