call underscore version of pthread_cleanup_pop instead.

This commit is contained in:
davidxu 2007-12-20 04:40:12 +00:00
parent cd0acadf51
commit cbdadd6e3e

View File

@ -100,7 +100,7 @@ _pthread_exit(void *status)
/* Save the return value: */
curthread->ret = status;
while (curthread->cleanup != NULL) {
pthread_cleanup_pop(1);
_pthread_cleanup_pop(1);
}
/* Check if there is thread specific data: */