Many pthread failures in the test suite, one setgroup failure
Robert Collins
rbcollins@cygwin.com
Fri Sep 27 08:41:00 GMT 2002
On Sat, 2002-09-28 at 01:33, Robert Collins wrote:
> On Sat, 2002-09-28 at 01:25, egor duda wrote:
> > just check what pthread_create() returns when given NULL in attr
> > (second) parameter. It's a simple 2-line test program. My reading of
> > the code + running under gdb shows that it returns EAGAIN.
>
> I have checked, and it works.
Oh, a little less briskly:
pthread_create calls pthread::create without check parameters.
pthread::create calls precreate(newattr) without checking for null or
non null.
precreate(newattr) checks for NULL, and if nonnull copies the
attributes, if null uses the default values.
BUT: I think I've just caught the cause.
I (stupidly) made pthread::create a void function.
so pthread_create looks like:
int pthread_create (..)
{
return lastvalueonstack;
}
oops. Fixing now.
Rob
--
---
GPG key available at: http://users.bigpond.net.au/robertc/keys.txt.
---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://cygwin.com/pipermail/cygwin-developers/attachments/20020927/34c8a0c5/attachment.sig>
More information about the Cygwin-developers
mailing list