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)


"George T. Talbot" <george@moberg.com> writes:

> 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.

ERRORS
 The pthread_create( ) function shall fail if:
 [EAGAIN]  The system lacked the necessary resources to create another thread, or the
           system-imposed limit on the total number of threads in a process
           PTHREAD_THREADS_MAX would be exceeded
 [EINVAL]  The value specified by attr is invalid.
 [EPERM]   The caller does not have appropriate permission to set the required
           scheduling parameters or scheduling policy.
 The pthread_create( ) function shall not return an error code of [EINTR].

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

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