summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-07-29 20:17:43 -0400
committerScott Ullrich <sullrich@gmail.com>2011-07-29 20:17:43 -0400
commit944368243b83a1837ed086db3c515690794d5025 (patch)
tree050ea9bdc5c8af8d3751ad9bdd1b684f08039bf3
parenta3cc48b71bcc99451a68d3bf5efa9a0b58e60909 (diff)
downloadpfsense-944368243b83a1837ed086db3c515690794d5025.zip
pfsense-944368243b83a1837ed086db3c515690794d5025.tar.gz
Max procs should be 1 when using an op code cacher
-rw-r--r--etc/inc/system.inc2
-rw-r--r--etc/inc/util.inc5
2 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 45a6260..7afdd0e 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -768,7 +768,7 @@ function system_generate_lighty_config($filename,
$document_root = "/usr/local/www/",
$cert_location = "cert.pem",
$ca_location = "ca.pem",
- $max_procs = 2,
+ $max_procs = 1,
$max_requests = "2",
$fast_cgi_enable = true,
$captive_portal = false) {
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index bcb7845..e99b227 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -592,6 +592,9 @@ function get_configured_interface_list($only_opt = false, $withdisabled = false)
$iflist = array();
+ if(!$is_array['interfaces'])
+ $config = parse_config(true);
+
/* if list */
foreach($config['interfaces'] as $if => $ifdetail) {
if ($only_opt && ($if == "wan" || $if == "lan"))
@@ -1515,4 +1518,4 @@ function array_merge_recursive_unique($array0, $array1) {
return $result;
}
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud