4
0
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:
Corinna Vinschen 2017-03-08 17:43:23 +01:00
parent b9498f17f9
commit 994a4b7dcc

View File

@ -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;
}
};