Changeset 1274 for trunk/dll/systemf.c


Ignore:
Timestamp:
Nov 11, 2008, 1:16:14 AM (17 years ago)
Author:
Gregg Young
Message:

Clean up of system.c changes to reflect final fix for ticket 58

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/systemf.c

    r1272 r1274  
    2424  26 May 08 SHL Use uiLineNumber correctly
    2525  19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory or pTmpDir and use MakeTempName
    26   08 Nov 08 GKY Post an event semaphore to WaitChildThread to fix hang caused by viewer trying
    27                 to open a file before the archiver process closes. (Ticket 58)
    2826
    2927***********************************************************************/
     
    10861084                hTermQ = (HQUEUE)0;     // Try to survive
    10871085                DosExitCritSec();
    1088                 Dos_Error(MB_ENTER,rc,HWND_DESKTOP,pszSrcFile,__LINE__,"DosCreateEventSem");
     1086                Dos_Error(MB_ENTER,rc,HWND_DESKTOP,pszSrcFile,__LINE__,"DoCreateEventSem");
    10891087            }
    10901088            // if (!rc) fprintf(stderr,"%s %d qcreated ptib %x hTermQ %x\n",__FILE__, __LINE__,ptib,hTermQ);
     
    11321130      //     sdata.PgmInputs, sdata.TermQ, sdata.InheritOpt,
    11331131      //   sdata.SessionType, szTermQName,
    1134       //   hTermQ, ); fflush(stdout);
     1132      //   hTermQ, hTermQSem); fflush(stdout);
    11351133      ret = DosStartSession(&sdata, &ulSessID, &sessPID);
    11361134
     
    11701168            if (DosSetSession(ulSessID, &sd))   // Check if session gone (i.e. finished)
    11711169              break;
    1172             if (ctr > 20) {
     1170            if (ctr > 10) {
    11731171              //   printf("%s %d thread 0x%x showing slow sess %u pid 0x%x\n",
    11741172              //        __FILE__, __LINE__,ptib->tib_ordinal,ulSessID,sessPID); fflush(stdout); // 12 Mar 07 SHL
     
    12061204            }
    12071205
    1208               //printf("%s %d DosReadQueue thread 0x%x sess %u sessRC %u rq.pid 0x%x rq.data 0x%x\n",
    1209               //     __FILE__, __LINE__,ptib->tib_ordinal,pTermInfo->usSessID,pTermInfo->usRC,rq.pid, rq.ulData); fflush(stdout);
    1210 
    1211             if (pTermInfo->usSessID == ulSessID) {
     1206            //  printf("%s %d DosReadQueue thread 0x%x sess %u sessRC %u rq.pid 0x%x rq.data 0x%x\n",
     1207            //       __FILE__, __LINE__,ptib->tib_ordinal,pTermInfo->usSessID,pTermInfo->usRC,rq.pid, rq.ulData); fflush(stdout);
     1208
     1209            if (pTermInfo->usSessID == ulSessID)
    12121210              break;                    // Our session is done
    1213             }
    12141211
    12151212            // Requeue session for other thread
Note: See TracChangeset for help on using the changeset viewer.