From 40c125cf383c438c990e23bb60283160dec86d1a Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 29 Jul 2005 14:25:28 +0000 Subject: [PATCH] * pinfo.cc (pinfo::init): Sleep before retrying open_shared(). --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/pinfo.cc | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 10b9a1bd4..0a79875c8 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2005-07-29 Christopher Faylor + + * pinfo.cc (pinfo::init): Sleep before retrying open_shared(). + 2005-07-29 Arto Huusko * fork.cc (fork_parent): Fix null deref if pinfo creation fails. diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 4aab2f020..d7e73c29f 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -233,8 +233,7 @@ pinfo::init (pid_t n, DWORD flag, HANDLE h0) case ERROR_INVALID_ADDRESS: mapaddr = NULL; } - - debug_printf ("MapViewOfFileEx h0 %p, i %d failed, %E", h0, i); + low_priority_sleep (0); continue; } -- 2.43.5