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/_ras.cpp

    r21787 r21837  
    77#include <_ras.h>
    88#include <umalloc.h>
     9#include <process.h>
    910
    1011#include <custombuild.h>
     
    786787
    787788    snprintf (uniqueLogFileName, sizeof(uniqueLogFileName),
    788               "%s.%d", filename, loadNr);
     789              "%s.%d", filename, getpid());
    789790
    790791    if (rasdata.rlc.hlogfile == -1)
Note: See TracChangeset for help on using the changeset viewer.