Skip to content

Commit 91f1ab4

Browse files
committed
rt: Use the correct global change_dir lock
1 parent 5633a53 commit 91f1ab4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rt/rust_builtin.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -939,12 +939,12 @@ static lock_and_signal change_dir_lock;
939939

940940
extern "C" CDECL void
941941
rust_take_change_dir_lock() {
942-
global_args_lock.lock();
942+
change_dir_lock.lock();
943943
}
944944

945945
extern "C" CDECL void
946946
rust_drop_change_dir_lock() {
947-
global_args_lock.unlock();
947+
change_dir_lock.unlock();
948948
}
949949

950950
//

0 commit comments

Comments
 (0)