This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Bug with popen/pthread_create
- From: Kaz Kylheku <kaz at ashi dot footprints dot net>
- To: Thorsten Kukuk <kukuk at suse dot de>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 6 Feb 2003 08:14:17 -0800 (PST)
- Subject: Re: Bug with popen/pthread_create
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.