# HG changeset patch # User jbe # Date 1341351552 -7200 # Node ID ed22ba3a288825fed7d47f33b7d4022dce33fa06 # Parent 79bf3deefe2194fdfe0d93a8a3842961e7634675 Bugfix: Disable trace system for non-cgi sessions after autoloader has been installed diff -r 79bf3deefe21 -r ed22ba3a2888 framework/cgi-bin/webmcp.lua --- a/framework/cgi-bin/webmcp.lua Tue Jul 03 23:33:17 2012 +0200 +++ b/framework/cgi-bin/webmcp.lua Tue Jul 03 23:39:12 2012 +0200 @@ -56,13 +56,11 @@ -- load random generator library multirand = require 'multirand' --- load rocketcgi library and map it to cgi, unless interactive, --- and disable trace system, if interactive (avoids memory leakage) +-- load rocketcgi library and map it to cgi, unless interactive do local option = os.getenv("WEBMCP_INTERACTIVE") if option and option ~= "" and option ~= "0" then cgi = nil - trace.disable() else rocketcgi = require 'rocketcgi' -- TODO: no "rocketcgi" alias cgi = rocketcgi @@ -247,6 +245,7 @@ -- interactive console mode if not cgi then + trace.disable() -- avoids memory leakage local config_name = request.get_config_name() if config_name then execute.config(config_name)