Changeset 1927
- Timestamp:
- 09/01/08 12:51:30 (3 months ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/cherokee/main.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r1924 r1927 1 1 2008-09-01 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 3 * cherokee/main.c (figure_pid_file_path): Fixes the functionality, 4 it was not working properly because and incorrect string 5 comparison. 2 6 3 7 * cherokee/main_worker.c, cherokee/handler_cgi_base.c, cherokee/trunk/cherokee/main.c
r1918 r1927 65 65 { 66 66 FILE *f; 67 char *p; 67 68 char *line; 68 69 char tmp[512]; … … 75 76 line = fgets (tmp, sizeof(tmp), f); 76 77 if ((line != NULL) && 77 (! str cmp (line, "server!pid_file = ")))78 (! strncmp (line, "server!pid_file = ", 18))) 78 79 { 79 80 fclose(f); 81 p = line + 18; 82 while (*p) { 83 if ((*p == '\r') || 84 (*p == '\n')) 85 { 86 *p = '\0'; 87 break; 88 } 89 p += 1; 90 } 80 91 return strdup(line + 18); 81 92 }