This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: pthread_create() returning EINTR? (glibc-2.1.3, Linux x86 kernel 2.2.15, gcc-2.95.2)
- To: Ulrich Drepper <drepper at cygnus dot com>
- Subject: Re: pthread_create() returning EINTR? (glibc-2.1.3, Linux x86 kernel 2.2.15, gcc-2.95.2)
- From: "George T. Talbot" <george at moberg dot com>
- Date: Mon, 16 Oct 2000 11:25:46 -0400
- CC: libc-alpha at sourceware dot cygnus dot com
- Organization: Moberg Research, Inc.
- References: <39E7720E.DF12765D@moberg.com> <m366mvkml2.fsf@otr.mynet.cygnus.com>
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>