aboutsummaryrefslogtreecommitdiff
path: root/webui.sh
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-05-27 19:55:02 +0300
committerGitHub <noreply@github.com>2023-05-27 19:55:02 +0300
commitba812b449534be49527b88e653a88ac1a1703d0e (patch)
treecc3d0ccbc9282661b119e759d6626baffe3796de /webui.sh
parent0666f7c597a5b4b701c91ae4ef41ffe86035fa8b (diff)
parentd29fe44e467c6ecc435f561a776ead8f5116f077 (diff)
Merge pull request #10718 from kernelmethod/libtcmalloc_fixes
Small fixes to prepare_tcmalloc for Debian/Ubuntu compatibility
Diffstat (limited to 'webui.sh')
-rwxr-xr-xwebui.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/webui.sh b/webui.sh
index ab52ac3b..bf27c7dd 100755
--- a/webui.sh
+++ b/webui.sh
@@ -190,7 +190,7 @@ fi
# Try using TCMalloc on Linux
prepare_tcmalloc() {
if [[ "${OSTYPE}" == "linux"* ]] && [[ -z "${NO_TCMALLOC}" ]] && [[ -z "${LD_PRELOAD}" ]]; then
- TCMALLOC="$(ldconfig -p | grep -Po "libtcmalloc.so.\d" | head -n 1)"
+ TCMALLOC="$(PATH=/usr/sbin:$PATH ldconfig -p | grep -Po "libtcmalloc(_minimal|)\.so\.\d" | head -n 1)"
if [[ ! -z "${TCMALLOC}" ]]; then
echo "Using TCMalloc: ${TCMALLOC}"
export LD_PRELOAD="${TCMALLOC}"