X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=6b943b53793ffc0ac9eefaf0e097a05a1af608da;hp=e521b86849facadb45b4abfca262fd2331fb8f82;hb=f790752daacbb45c56cdabf1fd7c69eb06d98870;hpb=5254ca22f3dcfa3bd1993d85e57d68ba1a4f4f34 diff --git a/src/search.cpp b/src/search.cpp index e521b868..6b943b53 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2336,6 +2336,7 @@ split_point_start: // At split points actual search starts from here #if !defined(_MSC_VER) pthread_t pthread[1]; ok = (pthread_create(pthread, NULL, init_thread, (void*)(&i)) == 0); + pthread_detach(pthread[0]); #else ok = (CreateThread(NULL, 0, init_thread, (LPVOID)(&i), 0, NULL) != NULL); #endif