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…
Reference in New Issue