Changeset 1312 for trunk/dll/init.c


Ignore:
Timestamp:
Dec 3, 2008, 1:47:37 AM (17 years ago)
Author:
Gregg Young
Message:

Fix for traps caused by race condition on directory deletes. This disables immediate updates for deleted directory and set a semaphore to allow the delete to complete before update. It also quotes the * on the extract command line which appears to allow tar 1.15 and higher to work. (Ticket 304)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r1306 r1312  
    158158
    159159#pragma data_seg(GLOBAL1)
     160HMTX hmtxDeleteDir;
    160161HMTX hmtxFM2Globals;
    161162ULONG OS2ver[2];
     
    11811182                   sizeof(PVOID));
    11821183
    1183   DosCreateMutexSem("\\SEM\\GLOBAL1", &hmtxFM2Globals, 0L, FALSE);
    1184 
     1184  if (DosCreateMutexSem("\\SEM\\GLOBAL1", &hmtxFM2Globals, 0L, FALSE))
     1185    Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
     1186              "DosCreateMutexSem");
     1187  if (DosCreateMutexSem("\\SEM\\DELETDIR", &hmtxDeleteDir, 0L, FALSE))
     1188    Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
     1189              "DosCreateMutexSem");
    11851190  /*
    11861191   * set some defaults (note: everything else automatically initialized
Note: See TracChangeset for help on using the changeset viewer.