httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From taka...@apache.org
Subject svn commit: r823797 - /httpd/httpd/trunk/modules/generators/mod_cgid.c
Date Sat, 10 Oct 2009 05:52:17 GMT
Author: takashi
Date: Sat Oct 10 05:52:17 2009
New Revision: 823797

URL: http://svn.apache.org/viewvc?rev=823797&view=rev
Log:
Stop unexpected error logs in each requests.
sock_write returns not size but status.

Modified:
    httpd/httpd/trunk/modules/generators/mod_cgid.c

Modified: httpd/httpd/trunk/modules/generators/mod_cgid.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/generators/mod_cgid.c?rev=823797&r1=823796&r2=823797&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/generators/mod_cgid.c (original)
+++ httpd/httpd/trunk/modules/generators/mod_cgid.c Sat Oct 10 05:52:17 2009
@@ -728,10 +728,12 @@
 
         if (cgid_req.req_type == GETPID_REQ) {
             pid_t pid;
+            apr_status_t rv;
 
             pid = (pid_t)((long)apr_hash_get(script_hash, &cgid_req.conn_id, sizeof(cgid_req.conn_id)));
-            if (sock_write(sd2, &pid, sizeof(pid)) != sizeof(pid)) {
-                ap_log_error(APLOG_MARK, APLOG_ERR, 0,
+            rv = sock_write(sd2, &pid, sizeof(pid));
+            if (rv != APR_SUCCESS) {
+                ap_log_error(APLOG_MARK, APLOG_ERR, rv,
                              main_server,
                              "Error writing pid %" APR_PID_T_FMT " to handler", pid);
             }



Mime
View raw message