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:
		| @@ -549,6 +549,8 @@ public: | |||||||
|     /* If we got an address, remember it for the next allocation attempt. */ |     /* If we got an address, remember it for the next allocation attempt. */ | ||||||
|     if (real_stackaddr) |     if (real_stackaddr) | ||||||
|       current = (UINT_PTR) real_stackaddr; |       current = (UINT_PTR) real_stackaddr; | ||||||
|  |     else | ||||||
|  |       set_errno (EAGAIN); | ||||||
|     return real_stackaddr; |     return real_stackaddr; | ||||||
|   } |   } | ||||||
| }; | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user