implement flockfile api, rework stdio locking
[musl] / src / thread / pthread_create.c
index d829fa2..9b6385f 100644 (file)
@@ -150,6 +150,7 @@ static void init_threads()
 {
        struct sigaction sa = { .sa_flags = SA_SIGINFO | SA_RESTART };
        libc.lock = __lock;
+       libc.lockfile = __lockfile;
        libc.cancelpt = cancelpt;
        libc.rsyscall = rsyscall;
        sa.sa_sigaction = cancel_handler;