Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 77273 invoked from network); 29 Oct 2007 17:38:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Oct 2007 17:38:36 -0000 Received: (qmail 77285 invoked by uid 500); 29 Oct 2007 17:38:23 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 77214 invoked by uid 500); 29 Oct 2007 17:38:23 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 77203 invoked by uid 99); 29 Oct 2007 17:38:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2007 10:38:23 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2007 17:38:43 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 9C9441A983A; Mon, 29 Oct 2007 10:38:12 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r589761 - /httpd/httpd/trunk/os/unix/unixd.c Date: Mon, 29 Oct 2007 17:38:11 -0000 To: cvs@httpd.apache.org From: martin@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071029173812.9C9441A983A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: martin Date: Mon Oct 29 10:38:11 2007 New Revision: 589761 URL: http://svn.apache.org/viewvc?rev=589761&view=rev Log: After a stop or restart signal, the old listening sockets are closed. "Some platforms" drop out of the accept() with an EBADF after the sockets have been closed. Such an error should not clutter the logs. Modified: httpd/httpd/trunk/os/unix/unixd.c Modified: httpd/httpd/trunk/os/unix/unixd.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/os/unix/unixd.c?rev=589761&r1=589760&r2=589761&view=diff ============================================================================== --- httpd/httpd/trunk/os/unix/unixd.c (original) +++ httpd/httpd/trunk/os/unix/unixd.c Mon Oct 29 10:38:11 2007 @@ -593,6 +593,14 @@ return APR_EGENERAL; #else default: +#ifdef _OSD_POSIX /* Possibly on other platforms too */ + /* 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 && status == EBADF) + return status; +#endif ap_log_error(APLOG_MARK, APLOG_ERR, status, ap_server_conf, "apr_socket_accept: (client socket)"); return APR_EGENERAL;