Ignore:
Timestamp:
Aug 13, 2008 1:33:28 PM (16 years ago)
Author:
gah
Message:

nanovis/heightmap update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/NvEventLog.cpp

    r599 r1111  
    2525    char* logName = NULL;
    2626    int logNameLen = 0;
     27    extern int debug_flag;
    2728
    2829    if (user == NULL) {
     
    3839    }
    3940
    40     //open log and map stderr to log file
    41     xinetd_log = fopen(logName, "w");
    42     close(2);
    43     dup2(fileno(xinetd_log), 2);
    44     dup2(2,1);
    45 
    46     //flush junk
    47     fflush(stdout);
    48     fflush(stderr);
     41    if (!debug_flag) {
     42        //open log and map stderr to log file
     43        xinetd_log = fopen(logName, "w");
     44        close(2);
     45        dup2(fileno(xinetd_log), 2);
     46        dup2(2,1);
     47        //flush junk
     48        fflush(stdout);
     49        fflush(stderr);
     50    }
    4951
    5052    // clean up malloc'd memory
Note: See TracChangeset for help on using the changeset viewer.