Commit a093469a authored by Ramon Nou's avatar Ramon Nou Committed by Ramon Nou
Browse files

Removing multiple pthread issue in libc, dlio working

parent 70aad82b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -510,10 +510,11 @@ at_child_syscall() {
void
init_libc() {
    //printf("%d -> %p At init GEKKOFS\n", gettid(), (void*) CTX); // fork does

    CTX->init_logging();
    // from here ownwards it is safe to print messages
    LOG(DEBUG, "Logging subsystem initialized");
    pthread_atfork(&at_fork, &at_parent, &at_child);
    if (!init) { init = true; pthread_atfork(&at_fork, &at_parent, &at_child);}
    gkfs::preload::init_environment();
    CTX->enable_interception();
}