Detach the thread once created so we don't have to explicitly try and join it.
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;
}