Changeset 1270 for trunk/dll/arccnrs.c
- Timestamp:
- Nov 8, 2008, 9:48:24 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r1268 r1270 59 59 25 Aug 08 GKY Check TMP directory space warn if lee than 5 MiB prevent archiver from opening if 60 60 less than 10 KiB (It hangs and can't be closed) 61 08 Nov 08 GKY Add WaitChildThread to fix hang caused by viewer trying to open a file before 62 the archiver process closes. (Ticket 58) 61 63 62 64 ***********************************************************************/ … … 165 167 WAITCHILD; 166 168 169 // Creates a thread to wait for a child process to complete then posts a message and closes 167 170 VOID WaitChildThread(VOID * arg) 168 171 { 169 172 WAITCHILD *WaitChild; 170 ULONG clPosted;171 173 HAB thab; 172 174 CHAR *filename; … … 187 189 DosWaitEventSem(hWaitChildSem, SEM_INDEFINITE_WAIT); 188 190 priority_bumped(); 189 DosResetEventSem(hWaitChildSem, &clPosted);190 191 if (IsFile(WaitChild->filename) == 1) 191 192 PostMsg(WaitChild->hwndCnr, UM_ENTER, MPFROMP(filename), MPVOID); … … 1585 1586 p++; 1586 1587 } 1587 //printf("%s %d UM_ENTER %s %x\n",__FILE__, __LINE__,WaitChild->filename, dcd->hwndCnr); fflush(stdout); // 10 Mar 07 SHL hang 1588 free(s); 1588 free(s); 1589 1589 WaitChild->hwndCnr = dcd->hwndCnr; 1590 1590 rc = _beginthread(WaitChildThread, NULL, 65536, WaitChild); … … 1597 1597 DosSleep(100); // Allow unzip session to finish closing 14 Mar 07 SHL 1598 1598 #endif 1599 //DosWaitEventSem(hWaitChildSem, SEM_INDEFINITE_WAIT); 1600 //WinSendMsg(WaitChild->hwndCnr, UM_ENTER, MPFROMP(WaitChild->filename), MPVOID); 1599 //WinSendMsg(WaitChild->hwndCnr, UM_ENTER, MPFROMP(filename), MPVOID); 1601 1600 1602 1601 }
Note:
See TracChangeset
for help on using the changeset viewer.