projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c78050
)
prevent the "prepared statement "dbdpg_pN_N" already exists" errors that result in...
author
Ivan Kohler
<ivan@freeside.biz>
Tue, 28 Aug 2012 08:20:13 +0000
(
01:20
-0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Tue, 28 Aug 2012 08:20:13 +0000
(
01:20
-0700)
htetc/handler.pl
patch
|
blob
|
history
diff --git
a/htetc/handler.pl
b/htetc/handler.pl
index
d7c5657
..
3c68e83
100644
(file)
--- a/
htetc/handler.pl
+++ b/
htetc/handler.pl
@@
-8,10
+8,19
@@
use FS::Mason qw( mason_interps );
use FS::Trace;
if ( %%%RT_ENABLED%%% ) {
+
require RT;
+
$> = scalar(getpwnam('freeside'));
+
RT::LoadConfig();
RT::Init();
+
+ # disconnect DB before fork:
+ # (avoid 'prepared statement "dbdpg_p\d+_\d+" already exists' errors?)
+ $RT::Handle->dbh(undef);
+ undef $RT::Handle;
+
$> = $<;
}