mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
Cygwin: Emit correct errno EAGAIN if we can't create another thread
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
b9498f17f9
commit
994a4b7dcc
@ -549,6 +549,8 @@ public:
|
||||
/* If we got an address, remember it for the next allocation attempt. */
|
||||
if (real_stackaddr)
|
||||
current = (UINT_PTR) real_stackaddr;
|
||||
else
|
||||
set_errno (EAGAIN);
|
||||
return real_stackaddr;
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user