diff options
Diffstat (limited to 'exec/hashexec.c')
-rw-r--r-- | exec/hashexec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exec/hashexec.c b/exec/hashexec.c index 2aa3844b..e20a462e 100644 --- a/exec/hashexec.c +++ b/exec/hashexec.c @@ -205,7 +205,7 @@ check_hashbang (struct execdata *e, user_crdir = user_cwdir = MACH_PORT_NULL; - rwlock_reader_lock (&std_lock); + pthread_rwlock_rdlock (&std_lock); /* Open a port on the interpreter file. */ e->error = lookup (interp, O_EXEC, &interp_file); @@ -404,7 +404,7 @@ check_hashbang (struct execdata *e, &setup_args, &fault_handler); } - rwlock_reader_unlock (&std_lock); + pthread_rwlock_unlock (&std_lock); if (user_crdir != MACH_PORT_NULL) mach_port_deallocate (mach_task_self (), user_crdir); |