You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2009/09/10 20:09:01 UTC

svn commit: r813531 - /httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c

Author: trawick
Date: Thu Sep 10 18:09:01 2009
New Revision: 813531

URL: http://svn.apache.org/viewvc?rev=813531&view=rev
Log:
fix error handling in socket_writev()

Modified:
    httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c

Modified: httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c?rev=813531&r1=813530&r2=813531&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c Thu Sep 10 18:09:01 2009
@@ -695,8 +695,8 @@
         }
     } while (retcode == -1 && APR_STATUS_IS_EINTR(errno));
 
-    if (retcode == 0) {
-        ap_log_error(APLOG_MARK, APLOG_INFO, 0,
+    if (retcode == -1) {
+        ap_log_error(APLOG_MARK, APLOG_INFO, apr_get_os_error(),
                      ipc_handle->request->server,
                      "mod_fcgid: Write data error, fastcgi server has close connection");
         return APR_EPIPE;