ssh工具依赖系统so,和软件包自带依赖加载隔离

This commit is contained in:
zhang_xubo
2024-01-22 14:52:13 +08:00
parent a9ff6b5538
commit e6b90c2452
13 changed files with 69 additions and 22 deletions

View File

@ -278,6 +278,7 @@ class TaskThread(threading.Thread):
ssh_auth_sock = self.get_env_variable("SSH_AUTH_SOCK", bashrc_file)
ssh_agent_pid = self.get_env_variable("SSH_AGENT_PID", bashrc_file)
env = os.environ
env["LD_LIBRARY_PATH"] = "/usr/lib64"
env.update({"SSH_AUTH_SOCK": ssh_auth_sock,
"SSH_AGENT_PID": ssh_agent_pid})
self.proc = FastPopen(self.cmd, shell=False, stdout=subprocess.PIPE,