diff --git a/process.c b/process.c index 8570f577b3..1bfa12ba91 100644 --- a/process.c +++ b/process.c @@ -4236,7 +4236,7 @@ rb_fork_ruby(int *status) disable_child_handler_fork_parent(&old); /* yes, bad name */ rb_thread_release_fork_lock(); if (pid == 0) { - rb_thread_reset_fork_lock(); + rb_thread_reset_fork_lock(); } after_fork_ruby(pid); diff --git a/thread_pthread.c b/thread_pthread.c index 3c7fba42d2..6c8ec35671 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -3367,7 +3367,7 @@ rb_thread_reset_fork_lock(void) } if ((r = pthread_rwlock_init(&rb_thread_fork_rw_lock, NULL))) { - rb_bug_errno("pthread_rwlock_init", r); + rb_bug_errno("pthread_rwlock_init", r); } }