Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2017-03-08 19:43:23 +0300
committerCorinna Vinschen <corinna@vinschen.de>2017-03-08 19:43:23 +0300
commit994a4b7dccabb706c9dca2cd43c37e87f2cfe665 (patch)
treecf97f9c3439c740ffdfa42899e1f64cb8efc55b2 /winsup/cygwin/miscfuncs.cc
parentb9498f17f962bdbdb743f413f753a3639d9f9867 (diff)
Cygwin: Emit correct errno EAGAIN if we can't create another thread
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/miscfuncs.cc')
-rw-r--r--winsup/cygwin/miscfuncs.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/miscfuncs.cc b/winsup/cygwin/miscfuncs.cc
index 6dbe462b2..2117eb978 100644
--- a/winsup/cygwin/miscfuncs.cc
+++ b/winsup/cygwin/miscfuncs.cc
@@ -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;
}
};