diff options
author | ivan <ivan> | 2010-06-22 01:26:00 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-06-22 01:26:00 +0000 |
commit | a391e3adf1ebacf7bd1d0fd77bc3e0e5da06456b (patch) | |
tree | fc7e6c3e147027e1997dc072512514f2878e2794 | |
parent | 240a989ecff9c62e043f95cad0850c4034861b16 (diff) |
fix (probably harmless) "DBD::Pg::db disconnect failed: server closed the connection unexpectedly" warning, RT#7780
-rwxr-xr-x | FS/bin/freeside-selfservice-xmlrpcd | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/FS/bin/freeside-selfservice-xmlrpcd b/FS/bin/freeside-selfservice-xmlrpcd index d7b30b0aa..f5a4b9895 100755 --- a/FS/bin/freeside-selfservice-xmlrpcd +++ b/FS/bin/freeside-selfservice-xmlrpcd @@ -24,7 +24,7 @@ use XMLRPC::Transport::HTTP; #SOAP::Transport::HTTP; use XMLRPC::Lite; # for XMLRPC::Serializer use FS::Daemon qw(daemonize1 drop_root logfile daemonize2 ); -use FS::UID qw(adminsuidsetup); +use FS::UID qw(adminsuidsetup forksuidsetup); use FS::Conf; use FS::ClientAPI qw( load_clientapi_modules ); use FS::ClientAPI_XMLRPC; #FS::SelfService::XMLRPC; @@ -309,12 +309,10 @@ sub client_got_request { #expects to be in place. aka "kid time" in freeside-selfservice-server sub freeside_kid_time { - #if we need a db connection in the parent + #we did need a db connection in the parent, so ##get new db handle - #$FS::UID::dbh->{InactiveDestroy} = 1; - #forksuidsetup($user); - - adminsuidsetup($user); + $FS::UID::dbh->{InactiveDestroy} = 1; + forksuidsetup($user); #i guess that was it } |