UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

13 lines (12 loc) • 453 B
//#region src/process/child-env.ts /** Remove Gateway allocator tuning from a caller-owned child environment. */ function stripGatewayAllocatorEnv(e) { delete e.MALLOC_CONF; if (e.LD_PRELOAD !== void 0) { const t = e.LD_PRELOAD.split(/[\s:]+/u).filter((e) => e && !/(?:^|\/)libjemalloc\.so(?:\.\d+)*$/u.test(e)); if (t.length > 0) e.LD_PRELOAD = t.join(":"); else delete e.LD_PRELOAD; } } //#endregion export { stripGatewayAllocatorEnv as t };