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
1 changed files with 2 additions and 0 deletions

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