summaryrefslogtreecommitdiff
path: root/src/thread
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-03-12 21:55:45 -0500
committerRich Felker <dalias@aerifal.cx>2011-03-12 21:55:45 -0500
commit5eb0d33ec0f08b123c5c10877d6258d05fa9453a (patch)
tree85ff7f5397424685d89af8176ff7ce6d6f46f6e2 /src/thread
parentd8d19f4d46284d5b6124710a5235b6fe090c013f (diff)
downloadmusl-5eb0d33ec0f08b123c5c10877d6258d05fa9453a.tar.gz
implement flockfile api, rework stdio locking
Diffstat (limited to 'src/thread')
-rw-r--r--src/thread/pthread_create.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c
index d829fa26..9b6385f5 100644
--- a/src/thread/pthread_create.c
+++ b/src/thread/pthread_create.c
@@ -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;