This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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.
---
Attachment:
signature.asc
Description: This is a digitally signed message part
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |