]> git.saurik.com Git - apple/libpthread.git/blobdiff - src/pthread_atfork.c
libpthread-330.250.2.tar.gz
[apple/libpthread.git] / src / pthread_atfork.c
index add7e48c8152d2b0637296fca91a11556913ccc3..edeec16dbcf2e59f65c96f7fbb27074fb9bd77d7 100644 (file)
@@ -156,8 +156,10 @@ _pthread_atfork_child(void)
        pthread_globals_t globals = _pthread_globals();
        _PTHREAD_LOCK_INIT(globals->psaved_self_global_lock);
        __is_threaded = 0;
-       _pthread_main_thread_init(globals->psaved_self);
-       _pthread_bsdthread_init();
+       _pthread_main_thread_postfork_init(globals->psaved_self);
+
+       struct _pthread_registration_data registration_data;
+       _pthread_bsdthread_init(&registration_data);
 }
 
 // Iterate pthread_atfork child handlers.