httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59981] New: Add log message when apr_file_open_stdin/apr_file_open_stdout fails
Date Thu, 11 Aug 2016 15:22:29 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=59981

            Bug ID: 59981
           Summary: Add log message when
                    apr_file_open_stdin/apr_file_open_stdout fails
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: All
          Assignee: bugs@httpd.apache.org
          Reporter: jiazhouyang@nudt.edu.cn

Created attachment 34127
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34127&action=edit
Add log message when apr_file_open_stdin/apr_file_open_stdout fails

Function apr_file_open_stdin/apr_file_open_stdout may fail. The majority of
calls have checked the return value and printed log message like the following
code snippet, while the others have not. Those unchecked ones probably need
logs too (see attachment).

/* httpd-2.4.10/support/rotatelogs.c:625:9 */
    if (apr_file_open_stdin(&f_stdin, status.pool) != APR_SUCCESS) {
        fprintf(stderr, "Unable to open stdin\n");
        exit(1);
    }

    if (apr_file_open_stdout(&f_stdout, status.pool) != APR_SUCCESS) {
        fprintf(stderr, "Unable to open stdout\n");
        exit(1);
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message