Skip to content

Commit 9f11cf4

Browse files
committed
use the full path to libSystem.dylib
it seems dlopen is sensitive to LD_LIBRARY_PATH (even though docs deny this), so in situations where tea invokes itself it can result in the nested tea not being functional.
1 parent 23cfec9 commit 9f11cf4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/flock.node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import koffi from 'npm:koffi@2'
22
import * as util from "node:util"
33
import host from "./host.ts"
44

5-
const filename = host().platform == 'darwin' ? 'libSystem.dylib' : 'libc.so.6'
5+
const filename = host().platform == 'darwin' ? '/usr/lib/libSystem.dylib' : 'libc.so.6'
66
const libc = koffi.load(filename)
77

88
const LOCK_EX = 2;

0 commit comments

Comments
 (0)