- Timestamp:
- Jul 27, 2010, 9:10:44 PM (14 years ago)
- Branches:
- release-1.6
- Children:
- 88f0dae
- Parents:
- 6687135
- git-author:
- Nelson Elhage <nelhage@mit.edu> (07/15/10 23:40:59)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (07/27/10 21:10:44)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
r6687135 raf16ad3 1009 1009 if (g->debug_file == NULL || 1010 1010 (open_file && strcmp(filename, open_file) != 0)) { 1011 char *path; 1011 1012 int fd; 1012 1013 … … 1016 1017 g->debug_file = NULL; 1017 1018 1018 fd = open(filename, O_CREAT|O_WRONLY|O_EXCL, 0600); 1019 path = owl_sprintf("%s.%d", filename, getpid()); 1020 fd = open(path, O_CREAT|O_WRONLY|O_EXCL, 0600); 1021 owl_free(path); 1022 1019 1023 if (fd >= 0) 1020 1024 g->debug_file = fdopen(fd, "a");
Note: See TracChangeset
for help on using the changeset viewer.