Overview
Comment: | Updated to log fdopen failures instead of silently ignoring them |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | df2de34e2e2aa0d2e46bccec4c897c3f3f38ac50 |
User & Date: | rkeene on 2014-02-18 05:21:33 |
Other Links: | manifest | tags |
Context
2014-02-18
| ||
20:03 | Removed index.html serving workaround check-in: 6255e77ee6 user: rkeene tags: trunk | |
05:21 | Updated to log fdopen failures instead of silently ignoring them check-in: df2de34e2e user: rkeene tags: trunk | |
05:18 | Fixed potential (but unlikely) memory leaks related to logging check-in: f8df53b1e3 user: rkeene tags: trunk | |
Changes
Modified filed.c from [386b3803b7] to [79c614eba1].
825 825 date_current = filed_format_time(date_current_b, sizeof(date_current_b), time(NULL)); 826 826 827 827 /* Open socket as ANSI I/O for ease of use */ 828 828 fp = fdopen(fd, "w+b"); 829 829 if (fp == NULL) { 830 830 close(fd); 831 831 832 - free(log); 832 + log->buffer[0] = '\0'; 833 + log->http_code = -1; 834 + log->reason = "fdopen_failed"; 835 + 836 + filed_log_entry(log); 833 837 834 838 return; 835 839 } 836 840 837 841 request = filed_get_http_request(fp, request, options); 838 842 839 843 if (request == NULL) {