2006-10-27 Corinna Vinschen <corinna@vinschen.de>
+ * shared.cc (open_shared): Drop useless attempt from 2006-08-11.
+
+2006-10-27 Corinna Vinschen <corinna@vinschen.de>
+
* dcrt0.cc (__api_fatal): Drop spare argument to __small_sprintf.
* smallprint.c (__small_vsprintf): Preserve GetLastError value.
* winsup.h (api_fatal): Simplify. Drop duplicate filename arg.
{
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;
}