Changeset 5442
- Timestamp:
- 09/27/07 04:57:03 (14 months ago)
- Location:
- trunk/licq
- Files:
-
- 2 modified
-
include/pthread_rdwr.h (modified) (1 diff)
-
src/pthread_rdwr.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/licq/include/pthread_rdwr.h
r5431 r5442 32 32 * debug deadlocks. If a (potential) deadlock is discovered, the 33 33 * daemon will print a message to stderr (and to the file 34 * /tmp/licq.debug_rw_mutex) and than hang forever (if it's a real35 * deadlock).34 * <basedir>/licq.debug_rw_mutex) and than hang forever (if it's a 35 * real deadlock). 36 36 * 37 37 * This is when you should attach gdb to the process (gdb --pid `pidof -
trunk/licq/src/pthread_rdwr.c
r5440 r5442 29 29 #include <sys/time.h> 30 30 #include <time.h> 31 32 extern char BASE_DIR[]; 31 33 #endif 32 34 … … 97 99 print_users(stderr, rdwrp, reading); 98 100 99 // Also save it in /tmp/licq.debug_rw_mutex 100 FILE* file = fopen("/tmp/licq.debug_rw_mutex", "w"); 101 // Also save it in <basedir>/licq.debug_rw_mutex 102 char filename[255]; 103 snprintf(filename, 255, "%s/licq.debug_rw_mutex", BASE_DIR); 104 FILE* file = fopen(filename, "w"); 101 105 if (file != NULL) 102 106 {
