Changeset 784
- Timestamp:
- 04/24/07 16:46:48 (2 years ago)
- Files:
-
- 1.8.2/branches/devel/CHANGES.182 (modified) (1 diff)
- 1.8.2/branches/devel/hdrs/log.h (modified) (1 diff)
- 1.8.2/branches/devel/src/game.c (modified) (1 diff)
- 1.8.2/branches/devel/src/log.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
1.8.2/branches/devel/CHANGES.182
r779 r784 35 35 on. Suggested by Dan Widdis. [SW] 36 36 * '{think foo} bar' exhibited odd behavior. [GM] 37 * 'make test' wouldn't work right unless '.' was in you path. 38 Fix by Nathan Baum. 39 * stdin and stdout weren't getting closed, potentially causing 40 problems when trying to log out of a shell after starting 41 a mush. Reported by K Moon. [SW] 37 42 38 43 Version 1.8.2 patchlevel 3 March 11, 2007 1.8.2/branches/devel/hdrs/log.h
r463 r784 15 15 extern void start_all_logs(void); 16 16 extern void end_all_logs(void); 17 extern void redirect_st derr(void);17 extern void redirect_streams(void); 18 18 extern void WIN32_CDECL do_log 19 19 (int logtype, dbref player, dbref object, const char *fmt, ...) 1.8.2/branches/devel/src/game.c
r527 r784 738 738 config_file_startup(conf, 0); 739 739 start_all_logs(); 740 redirect_st derr();740 redirect_streams(); 741 741 742 742 /* Initialize the attribute chunk storage */ 1.8.2/branches/devel/src/log.c
r467 r784 122 122 } 123 123 124 /** Redirect stderr to a error log file .124 /** Redirect stderr to a error log file and close stdout and stdin. 125 125 * Should be called after start_all_logs(). 126 126 * \param log name of logfile to redirect stderr to. 127 127 */ 128 128 void 129 redirect_st derr(void)129 redirect_streams(void) 130 130 { 131 131 FILE *errlog_fp; … … 144 144 fclose(errlog_fp); 145 145 } 146 #ifndef DEBUG_BYTECODE 147 fclose(stdout); 148 #endif 149 fclose(stdin); 146 150 } 147 151
