make last thread's pthread_exit give exit(0) a consistent state
authorRich Felker <dalias@aerifal.cx>
Fri, 26 Apr 2013 20:16:04 +0000 (16:16 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 26 Apr 2013 20:16:04 +0000 (16:16 -0400)
commitd0ba09837bc033e236e921304b213daea0fe2653
treed1565f3be2023dc3098b6578d5d585dfb010e5ba
parentc3a6839ce95c0f93bd73f7fbe5fcaee4054e5b62
make last thread's pthread_exit give exit(0) a consistent state

the previous few commits ended up leaving the thread count and signal
mask wrong for atexit handlers and stdio cleanup.
src/thread/pthread_create.c