summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2009-07-06 22:22:49 +0200
committerWilliam A. Rowe Jr <wrowe@apache.org>2009-07-06 22:22:49 +0200
commit0b9ada684a1b7eab150f7c9cbbd4bea47885587b (patch)
tree97967869354e3dd6f6b490470f49efbbb4fd3e99
parentremoved unused var (seems a leftover from 1.3 days). (diff)
downloadapache2-0b9ada684a1b7eab150f7c9cbbd4bea47885587b.tar.xz
apache2-0b9ada684a1b7eab150f7c9cbbd4bea47885587b.zip
Use uninterruptable write; noted borrowing this code for lowportd (mod_ftp)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@791604 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--modules/generators/mod_cgid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c
index f124e81982..cfa4157d19 100644
--- a/modules/generators/mod_cgid.c
+++ b/modules/generators/mod_cgid.c
@@ -730,7 +730,7 @@ static int cgid_server(void *data)
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);