Ignore:
Timestamp:
Mar 8, 2011 10:27:00 AM (13 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/packages/vizservers/nanovis/NvEventLog.cpp

    r1994 r2120  
    1616
    1717#ifdef XINETD
    18 void
    19 NvInitService()
     18void NvInitService()
    2019{
    2120    const char* user = getenv("USER");
     
    3534    }
    3635
    37     // Open log and map stderr to log file.
     36    //open log and map stderr to log file
    3837    NanoVis::logfile = fopen(logName, "w");
    3938    close(2);
    4039    dup2(fileno(NanoVis::logfile), 2);
    4140    dup2(2,1);
    42     // Flush junk
     41    //flush junk
    4342    fflush(stdout);
    4443    fflush(stderr);
    4544
     45    // clean up malloc'd memory
    4646    if (logName != NULL) {
    4747        free(logName);
     
    4949}
    5050
    51 void
    52 NvExitService()
     51void NvExitService()
    5352{
     53    //close log file
    5454    if (NanoVis::logfile != NULL) {
    5555        fclose(NanoVis::logfile);
Note: See TracChangeset for help on using the changeset viewer.