]> git.saurik.com Git - apple/libpthread.git/blobdiff - src/pthread_atfork.c
libpthread-330.230.1.tar.gz
[apple/libpthread.git] / src / pthread_atfork.c
index d489c24118becf9791a71566e7a884910f73b3a1..edeec16dbcf2e59f65c96f7fbb27074fb9bd77d7 100644 (file)
@@ -156,7 +156,7 @@ _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_main_thread_postfork_init(globals->psaved_self);
 
        struct _pthread_registration_data registration_data;
        _pthread_bsdthread_init(&registration_data);