Merge pull request #27458 from taosdata/fix/3.0/TD-31601

fix pthread_create caused pthread_join crash
This commit is contained in:
Pan Wei 2024-08-28 18:54:25 +08:00 committed by GitHub
commit ed0997ebb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@
int32_t taosThreadCreate(TdThread *tid, const TdThreadAttr *attr, void *(*start)(void *), void *arg) {
int32_t code = pthread_create(tid, attr, start, arg);
if (code) {
taosThreadClear(tid);
terrno = TAOS_SYSTEM_ERROR(code);
return terrno;
}