Changeset af16ad3
- 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)
- Files:
-
- 3 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"); -
owl.h
r26a1398 raf16ad3 74 74 75 75 #define OWL_DEBUG 0 76 #define OWL_DEBUG_FILE "/var/tmp/ owldebug"76 #define OWL_DEBUG_FILE "/var/tmp/barnowl-debug" 77 77 78 78 #define OWL_CONFIG_DIR "/.owl" /* this is relative to the user's home directory */ -
variable.c
r937ac795 raf16ad3 186 186 OWLVAR_PATH( "debug_file" /* %OwlVarStub */, OWL_DEBUG_FILE, 187 187 "path for logging debug messages when debugging is enabled", 188 "This file will be logged to if 'debug' is set to 'on'.\n"), 188 "This file will be logged to if 'debug' is set to 'on'.\n" 189 "BarnOwl will append a dot and the current process's pid to the filename."), 189 190 190 191 OWLVAR_PATH( "zsigproc" /* %OwlVarStub:zsigproc */, NULL,
Note: See TracChangeset
for help on using the changeset viewer.