You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2009/07/06 22:22:49 UTC

svn commit: r791604 - /httpd/httpd/trunk/modules/generators/mod_cgid.c

Author: wrowe
Date: Mon Jul  6 20:22:49 2009
New Revision: 791604

URL: http://svn.apache.org/viewvc?rev=791604&view=rev
Log:
Use uninterruptable write; noted borrowing this code for lowportd (mod_ftp)

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=791604&r1=791603&r2=791604&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/generators/mod_cgid.c (original)
+++ httpd/httpd/trunk/modules/generators/mod_cgid.c Mon Jul  6 20:22:49 2009
@@ -730,7 +730,7 @@
             pid_t pid;
 
             pid = (pid_t)((long)apr_hash_get(script_hash, &cgid_req.conn_id, sizeof(cgid_req.conn_id)));
-            if (write(sd2, &pid, sizeof(pid)) != sizeof(pid)) {
+            if (sock_write(sd2, &pid, sizeof(pid)) != sizeof(pid)) {
                 ap_log_error(APLOG_MARK, APLOG_ERR, 0,
                              main_server,
                              "Error writing pid %" APR_PID_T_FMT " to handler", pid);