mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
that it is called as soon as libpthread.so is loaded even if pthread_create is never called. This ensures that pthread_exit will work correctly, and I think will also cure the famous memory leak in the pthread specifics for the main thread. CCMAIL: 86730-done@bugs.kde.org git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2584
7 lines
55 B
C
7 lines
55 B
C
#include <pthread.h>
|
|
|
|
int main()
|
|
{
|
|
pthread_exit(0);
|
|
}
|