Changeset 26a1398
- Timestamp:
- Jul 27, 2010, 9:10:44 PM (14 years ago)
- Branches:
- release-1.6
- Children:
- 6687135
- Parents:
- 0f6ea94
- git-author:
- Nelson Elhage <nelhage@mit.edu> (07/15/10 23:35:12)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (07/27/10 21:10:44)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r258a3bf r26a1398 1204 1204 return; 1205 1205 1206 file = fopen(owl_global_get_debug_file(&g), "a");1206 file = owl_global_get_debug_file_handle(&g); 1207 1207 if (!file) /* XXX should report this */ 1208 1208 return; … … 1214 1214 vfprintf(file, fmt, ap); 1215 1215 putc('\n', file); 1216 f close(file);1216 fflush(file); 1217 1217 1218 1218 va_end(ap); -
global.c
r9e0bc3b r26a1398 1003 1003 g->interrupted = 0; 1004 1004 } 1005 1006 FILE *owl_global_get_debug_file_handle(owl_global *g) { 1007 static char *open_file = NULL; 1008 const char *filename = owl_global_get_debug_file(g); 1009 if (g->debug_file == NULL || 1010 (open_file && strcmp(filename, open_file) != 0)) { 1011 if (g->debug_file) 1012 fclose(g->debug_file); 1013 g->debug_file = fopen(filename, "a"); 1014 1015 owl_free(open_file); 1016 open_file = owl_strdup(filename); 1017 } 1018 return g->debug_file; 1019 } -
owl.c
rc088c53 r26a1398 515 515 g.load_initial_subs = opts.load_initial_subs; 516 516 517 owl_function_debugmsg("startup: Finished parsing arguments");518 519 517 owl_register_signal_handlers(); 520 518 owl_start_curses(); -
owl.h
r1cfcab7 r26a1398 624 624 int load_initial_subs; 625 625 int interrupted; 626 FILE *debug_file; 626 627 } owl_global; 627 628
Note: See TracChangeset
for help on using the changeset viewer.