return;
}
- rc = apr_file_open(&fd, fspec, APR_READ | APR_BINARY | APR_XTHREAD | APR_INHERIT,
+ rc = apr_file_open(&fd, fspec, APR_READ | APR_BINARY | APR_XTHREAD,
APR_OS_DEFAULT, cmd->pool);
if (rc != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_WARNING, rc, cmd->server,
"mod_file_cache: unable to open(%s, O_RDONLY), skipping", fspec);
return;
}
+ apr_file_set_inherit(fd);
/* WooHoo, we have a file to put in the cache */
new_file = apr_pcalloc(cmd->pool, sizeof(a_file));
module AP_MODULE_DECLARE_DATA log_config_module;
-static int xfer_flags = (APR_WRITE | APR_APPEND | APR_CREATE | APR_INHERIT);
+static int xfer_flags = (APR_WRITE | APR_APPEND | APR_CREATE);
static apr_fileperms_t xfer_perms = APR_OS_DEFAULT;
static apr_hash_t *log_hash;
"could not open transfer log file %s.", fname);
exit(1);
}
+ apr_file_set_inherit(cls->log_fd);
}
#ifdef BUFFERED_LOGS
cls->outcnt = 0;
const char *fname;
apr_status_t rc;
piped_log *pl;
- int rewritelog_flags = ( APR_WRITE | APR_APPEND | APR_CREATE | APR_INHERIT );
+ int rewritelog_flags = ( APR_WRITE | APR_APPEND | APR_CREATE );
apr_fileperms_t rewritelog_mode = ( APR_UREAD | APR_UWRITE | APR_GREAD | APR_WREAD );
conf = ap_get_module_config(s->module_config, &rewrite_module);
"file %s", fname);
exit(1);
}
+ apr_file_set_inherit(conf->rewritelogfp);
}
return;
}