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; }