call underscore version of pthread_cleanup_pop instead.

This commit is contained in:
David Xu 2007-12-20 04:40:12 +00:00
parent 06c8eb55ce
commit 9ba01c866b

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: */