added pthread_detach() for cleanup

This commit is contained in:
Fufu Fang 2019-07-27 02:49:38 +01:00
parent 13d78b87a6
commit c72b0d4a7f
1 changed files with 1 additions and 0 deletions

View File

@ -844,6 +844,7 @@ cf->next_offset);
pthread_self());
fflush(stderr);
pthread_mutex_unlock(&cf->rw_lock);
pthread_detach(pthread_self());
pthread_exit(NULL);
}