+2002-08-15 Thomas Pfaff <tpfaff@gmx.net>
+
+ * dcrt0.cc: Modify define for CYGWIN_GUARD.
+ (alloc_stack_hard_way): Just use CYGWIN_GUARD in VirtualAlloc call.
+
2002-08-11 Conrad Scott <conrad.scott@dsl.pipex.com>
* fhandler.h (fhandler_socket::recv): Remove method.
child_info NO_COPY *child_proc_info = NULL;
static MEMORY_BASIC_INFORMATION NO_COPY sm;
-#define CYGWIN_GUARD ((wincap.has_page_guard ()) ? PAGE_GUARD : PAGE_NOACCESS)
+#define CYGWIN_GUARD ((wincap.has_page_guard ()) ? \
+ PAGE_EXECUTE_READWRITE|PAGE_GUARD : PAGE_NOACCESS)
// __inline__ void
extern void
{
m.BaseAddress = (LPVOID)((DWORD)m.BaseAddress - 1);
if (!VirtualAlloc ((LPVOID) m.BaseAddress, 1, MEM_COMMIT,
- PAGE_EXECUTE_READWRITE|CYGWIN_GUARD))
+ CYGWIN_GUARD))
api_fatal ("fork: couldn't allocate new stack guard page %p, %E",
m.BaseAddress);
}