|
@@ -61,6 +61,7 @@ from optparse import OptionParser, OptionValueError
|
|
|
import io
|
|
|
import pwd
|
|
|
import posix
|
|
|
+import copy
|
|
|
|
|
|
import isc.cc
|
|
|
import isc.util.process
|
|
@@ -184,7 +185,7 @@ class ProcessInfo:
|
|
|
# Environment variables for the child process will be a copy of those
|
|
|
# of the boss process with any additional specific variables given
|
|
|
# on construction (self.env).
|
|
|
- spawn_env = os.environ
|
|
|
+ spawn_env = copy.deepcopy(os.environ)
|
|
|
spawn_env.update(self.env)
|
|
|
if 'B10_FROM_SOURCE' not in os.environ:
|
|
|
spawn_env['PATH'] = "@@LIBEXECDIR@@:" + spawn_env['PATH']
|
|
@@ -355,8 +356,10 @@ class BoB:
|
|
|
|
|
|
def start_creator(self):
|
|
|
self.curproc = 'b10-sockcreator'
|
|
|
- self.sockcreator = isc.bind10.sockcreator.Creator("@@LIBEXECDIR@@:" +
|
|
|
- os.environ['PATH'])
|
|
|
+ creator_path = os.environ['PATH']
|
|
|
+ if 'B10_FROM_SOURCE' not in os.environ:
|
|
|
+ creator_path = "@@LIBEXECDIR@@:" + creator_path
|
|
|
+ self.sockcreator = isc.bind10.sockcreator.Creator(creator_path)
|
|
|
|
|
|
def stop_creator(self, kill=False):
|
|
|
if self.sockcreator is None:
|