https://issues.apache.org/bugzilla/show_bug.cgi?id=49058
--- Comment #4 from Jeff Trawick <[email protected]> 2010-04-13 11:39:15 EDT --- Here's an updated 2.2.x patch based on what I committed to trunk: Index: os/unix/unixd.c =================================================================== --- os/unix/unixd.c (revision 933664) +++ os/unix/unixd.c (working copy) @@ -633,6 +633,15 @@ return APR_EGENERAL; #else default: + /* If the socket has been closed in ap_close_listeners() + * by the restart/stop action, we may get EBADF. + * Do not print an error in this case. + */ + if (!lr->active) { + ap_log_error(APLOG_MARK, APLOG_DEBUG, status, ap_server_conf, + "apr_socket_accept failed for inactive listener"); + return status; + } ap_log_error(APLOG_MARK, APLOG_ERR, status, ap_server_conf, "apr_socket_accept: (client socket)"); return APR_EGENERAL; It can be noisier than the previous patch, as it writes a message at log level debug. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
