From fa9e684236f0d6968d42881470351b1d2d2b4c23 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 27 Oct 2006 10:51:25 +0000 Subject: [PATCH] * shared.cc (open_shared): Drop useless attempt from 2006-08-11. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/shared.cc | 24 ------------------------ 2 files changed, 4 insertions(+), 24 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 28ccb6735..1487544c6 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2006-10-27 Corinna Vinschen + + * shared.cc (open_shared): Drop useless attempt from 2006-08-11. + 2006-10-27 Corinna Vinschen * dcrt0.cc (__api_fatal): Drop spare argument to __small_sprintf. diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc index 2524ecabc..65965b58b 100644 --- a/winsup/cygwin/shared.cc +++ b/winsup/cygwin/shared.cc @@ -93,30 +93,6 @@ open_shared (const char *name, int n, HANDLE& shared_h, DWORD size, { shared_h = CreateFileMapping (INVALID_HANDLE_VALUE, psa, PAGE_READWRITE, 0, size, mapname); -#ifdef DEBUGGING - if (!shared_h && GetLastError () == NO_ERROR) - { - system_printf ("CreateFileMapping %s, %E. Retry Open", mapname); - shared_h = OpenFileMapping (access, FALSE, mapname); - if (!shared_h) - { - system_printf ("OpenFileMapping %s, %E. Retry Create " - "after sleep (check timing problem)", mapname); - Sleep (1000L); - shared_h = CreateFileMapping (INVALID_HANDLE_VALUE, psa, - PAGE_READWRITE, 0, size, - mapname); - if (!shared_h) - system_printf ("Retried CreateFileMapping %s, %E.", - mapname); - else - system_printf ("Retried CreateFileMapping %s succeeded!", - mapname); - } - else - system_printf ("OpenFileMapping %s succeeded!", mapname); - } -#endif if (GetLastError () == ERROR_ALREADY_EXISTS) m = SH_JUSTOPEN; }