Changeset 50522b5
- Timestamp:
- Jul 16, 2010, 7:43:42 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 26ad412
- Parents:
- d12a8c7
- git-author:
- Nelson Elhage <nelhage@mit.edu> (07/15/10 23:38:45)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (07/16/10 19:43:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
rd12a8c7 r50522b5 1081 1081 if (g->debug_file == NULL || 1082 1082 (open_file && strcmp(filename, open_file) != 0)) { 1083 int fd; 1084 1083 1085 if (g->debug_file) 1084 1086 fclose(g->debug_file); 1085 g->debug_file = fopen(filename, "a"); 1087 1088 g->debug_file = NULL; 1089 1090 fd = open(filename, O_CREAT|O_WRONLY|O_EXCL, 0600); 1091 if (fd >= 0) 1092 g->debug_file = fdopen(fd, "a"); 1086 1093 1087 1094 owl_free(open_file);
Note: See TracChangeset
for help on using the changeset viewer.