Changeset 1111 for trunk/packages/vizservers/nanovis/NvEventLog.cpp
- Timestamp:
- Aug 13, 2008 1:33:28 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/NvEventLog.cpp
r599 r1111 25 25 char* logName = NULL; 26 26 int logNameLen = 0; 27 extern int debug_flag; 27 28 28 29 if (user == NULL) { … … 38 39 } 39 40 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 } 49 51 50 52 // clean up malloc'd memory
Note: See TracChangeset
for help on using the changeset viewer.