From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tristan Savatier To: pthreads-win32@sourceware.cygnus.com Subject: pthread_exit bug ? Date: Thu, 02 Sep 1999 02:43:00 -0000 Message-id: <37CE487D.FD66CE11@mpegtv.com> References: <000501bee96e$97998e50$440b10ac@leibinger.freinet.de> X-SW-Source: 1999/msg00070.html I am currently using pthreads-win32-snap-1999-05-30, using VC++ 6.0 under Win98. My program creates several threads. At termination, each thread (except the main thread) terminates by calling pthread_exit, then the main thread terminates by calling pthread_exit (at this point, all my threads are terminated, therefore the process should disapear). This works fine with native pthread libraries on Linux and other Posix systems. But I noticed that with pthreads-win32, calling pthread_exit to terminate my main thread does not work well: the process survives with two dangling threads (both threads are some type of internal kernel threads, not running any of my code). If I call exit(0) [instead of pthread_exit] to terminate my main thread, the process terminates properly (i.e. this is a workaround). This looks like a bug: the pthread standard says, in the pthread_exit specification: <> Is that a known bug ? -t