[uClibc] pthreads & stdio

Manuel Novoa III mjn3 at codepoet.org
Wed Sep 24 03:36:27 UTC 2003


Hello,

On Tue, Sep 23, 2003 at 06:38:40PM -0600, Gregory Nutt wrote:
> Attached is a short test program.  It just creates an arbitrary number 
> of threads.  Each thread just waits then outputs a unique identifying 
> number.  Each thread also indicates that it has started by setting a 
> flag.  What I see when I run this program is the following:
> 
> 1. All threads are started successfully,
> 2. The flag settings indicate that all threads (at least) started, but
> 3. I only get printf() output on the first 5 threads that were started.
> 
> Without looking any deeper, it looks like the file descriptors may not 
> have been inherited correctly???
> 
> Has anyone seen this before?  If so, I would appreciate any insight that 
> you may have.

I ran your test app, and get output for all threads.  But I'm seeing a
problem with the app not terminating.  The scanf call is returning
and the main function returns.  But the threads continue running.

Manuel



More information about the uClibc mailing list