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