This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]