summaryrefslogtreecommitdiff
path: root/FS/bin
diff options
context:
space:
mode:
authorivan <ivan>2004-09-06 09:44:42 +0000
committerivan <ivan>2004-09-06 09:44:42 +0000
commit8a56de51d9b1bf26fde1a32ed283edc3b545d5a4 (patch)
tree1a14a5d1a3317fdcbf0415792b4e425440962a22 /FS/bin
parente9fe829de47a93ac77cacfda6f61b644a78a2929 (diff)
don't open a database connection in the parent process
Diffstat (limited to 'FS/bin')
-rw-r--r--FS/bin/freeside-selfservice-server11
1 files changed, 7 insertions, 4 deletions
diff --git a/FS/bin/freeside-selfservice-server b/FS/bin/freeside-selfservice-server
index 864c2d46e..d34e8411c 100644
--- a/FS/bin/freeside-selfservice-server
+++ b/FS/bin/freeside-selfservice-server
@@ -107,9 +107,12 @@ while (1) {
warn "child $pid spawned\n" if $Debug;
} else { #kid time
- #get new db handle
- $FS::UID::dbh->{InactiveDestroy} = 1;
- forksuidsetup($user);
+ ##get new db handle
+ #$FS::UID::dbh->{InactiveDestroy} = 1;
+ #forksuidsetup($user);
+
+ #get db handle
+ adminsuidsetup($user);
my $type = $packet->{_packet};
warn "calling $type handler\n" if $Debug;
@@ -195,7 +198,7 @@ sub init {
#eslaf
$ENV{HOME} = (getpwuid($>))[7]; #for ssh
- adminsuidsetup $user;
+ #adminsuidsetup $user;
#$log_file = "/usr/local/etc/freeside/selfservice.". $FS::UID::datasrc; #MACHINE NAME
$log_file = "/usr/local/etc/freeside/selfservice.$machine.log";