Bug with popen/pthread_create
Kaz Kylheku
kaz@ashi.footprints.net
Thu Feb 6 16:14:00 GMT 2003
On Thu, 6 Feb 2003, Thorsten Kukuk wrote:
> Hi,
>
> the appendend testprogram works fine with glibc 2.2.x, but it does
> not work with current glibc from CVS. The "printf("in main\n");
> is never reached. If I don't call popen(), it works fine. Any ideas,
> what could go wrong? This happens on all architectures.
Note that you don't call popen() this program does *not* work fine,
depending on what you mean by fine. When the main thread terminates by
retruning from main(), the process exits; all other threads are killed
in their tracks. So you are leaving entirely to chance how much of the
foo() thread work actually completes.
More information about the Libc-alpha
mailing list