]> git.saurik.com Git - apple/libpthread.git/blobdiff - src/pthread_atfork.c
libpthread-301.50.1.tar.gz
[apple/libpthread.git] / src / pthread_atfork.c
index add7e48c8152d2b0637296fca91a11556913ccc3..d489c24118becf9791a71566e7a884910f73b3a1 100644 (file)
@@ -157,7 +157,9 @@ _pthread_atfork_child(void)
        _PTHREAD_LOCK_INIT(globals->psaved_self_global_lock);
        __is_threaded = 0;
        _pthread_main_thread_init(globals->psaved_self);
-       _pthread_bsdthread_init();
+
+       struct _pthread_registration_data registration_data;
+       _pthread_bsdthread_init(&registration_data);
 }
 
 // Iterate pthread_atfork child handlers.