- Timestamp:
- Jul 16, 2010, 7:43:42 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 63d9de9
- Parents:
- 50522b5
- git-author:
- Nelson Elhage <nelhage@mit.edu> (07/15/10 23:40:59)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (07/16/10 19:43:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
r50522b5 r26ad412 1081 1081 if (g->debug_file == NULL || 1082 1082 (open_file && strcmp(filename, open_file) != 0)) { 1083 char *path; 1083 1084 int fd; 1084 1085 … … 1088 1089 g->debug_file = NULL; 1089 1090 1090 fd = open(filename, O_CREAT|O_WRONLY|O_EXCL, 0600); 1091 path = owl_sprintf("%s.%d", filename, getpid()); 1092 fd = open(path, O_CREAT|O_WRONLY|O_EXCL, 0600); 1093 owl_free(path); 1094 1091 1095 if (fd >= 0) 1092 1096 g->debug_file = fdopen(fd, "a");
Note: See TracChangeset
for help on using the changeset viewer.