also not a thread id: nullptr

This commit is contained in:
Aaron Gyes
2021-10-28 02:14:29 -07:00
parent 362319d25f
commit 575decc35b

View File

@@ -356,7 +356,7 @@ bool make_detached_pthread(void *(*func)(void *), void *param) {
// Spawn a thread. If this fails, it means there's already a bunch of threads; it is very
// unlikely that they are all on the verge of exiting, so one is likely to be ready to handle
// extant requests. So we can ignore failure with some confidence.
pthread_t thread = nullptr;
pthread_t thread = 0;
int err = pthread_create(&thread, nullptr, func, param);
if (err == 0) {
// Success, return the thread.