Ignore:
Timestamp:
Nov 30, 2011, 2:58:20 PM (14 years ago)
Author:
dmik
Message:

Use pid instead of the ordinal number in log file names.

This in particular fixes the problem when WGSS50 writes to the log
before the ordinal is correctly initialized by KERNEL32 which resulted
into two processes writing to the same log file.

This also guarantees that a subsequent re-run will not vanish the
previous log file which is also useful sometimes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/src/kernel32/initterm.cpp

    r21829 r21837  
    6060extern PFN pfnImSetMsgQueueProperty;
    6161
    62 //
    63 // Global DLL Data (keep it in sync with globaldata.asm!)
    64 //
    65 extern int globLoadNr; // = 0
    66 
    6762BOOL    fVersionWarp3 = FALSE;
    6863BOOL    fCustomBuild  = FALSE;
     
    7065ULONG   flAllocMem = 0;    /* flag to optimize DosAllocMem to use all the memory on SMP machines */
    7166ULONG   ulMaxAddr = 0x20000000; /* end of user address space. */
    72 int     loadNr = 0;
    7367char    kernel32Path[CCHMAXPATH] = "";
    7468BOOL    fInit     = FALSE;
     
    359353{
    360354    HMODULE hModule;
    361 
    362     if (!fInit)
    363         loadNr = globLoadNr++;
    364355
    365356    BOOL WGSS_OK = FALSE;
Note: See TracChangeset for help on using the changeset viewer.