Browse Source

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

Con Kolivas 14 years ago
parent
commit
d2cb012f5a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cpu-miner.c

+ 1 - 0
cpu-miner.c

@@ -499,6 +499,7 @@ static bool workio_submit_work(struct workio_cmd *wc)
 		applog(LOG_ERR, "Failed to create submit_thread");
 		applog(LOG_ERR, "Failed to create submit_thread");
 		return false;
 		return false;
 	}
 	}
+	pthread_detach(thr);
 
 
 	return true;
 	return true;
 }
 }