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]

Re: pthread_create() returning EINTR? (glibc-2.1.3, Linux x86 kernel 2.2.15, gcc-2.95.2)


I don't doubt this is probably a bug in my program...I'm still working
on a test case.  What I would appreciate, though, is that if
pthread_create() fails, that it should signal _why_ it fails via errno
or some other mechanism.


Ulrich Drepper wrote:
> 
> "George T. Talbot" <george@moberg.com> writes:
> 
> > I've got a program which spawns threads that listen on sockets.  After
> > running for a while, and opening and closing a lot of sockets, and
> > starting a lot of threads, pthread_create() returns -1 with errno set to
> > EINTR.  EINTR isn't listed on pthread_create()'s man page, though I know
> > what it is after using select().
> 
> Two things before I consider looking at this:
> 
> - try glibc 2.2 (either compile it yourself or use a distribution)
> 
> - provide a test case
> 
> If there would be know problems we'd document them.
> 
> --
> ---------------.                          ,-.   1325 Chesapeake Terrace
> Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
> Red Hat          `--' drepper at redhat.com   `------------------------

--
George T. Talbot
<george at moberg dot com>

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