summaryrefslogtreecommitdiff
path: root/src/stdio/flockfile.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-17 16:53:54 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-17 16:53:54 -0400
commit9080cc153cc2b09881c3245becbd68534db18d7c (patch)
treeddbc5aef325120e000b8e7d852f26322791deb55 /src/stdio/flockfile.c
parenteb0e8fa0b1960cff4bd65ebefc798f70273b0bc9 (diff)
downloadmusl-9080cc153cc2b09881c3245becbd68534db18d7c.tar.gz
musl-9080cc153cc2b09881c3245becbd68534db18d7c.tar.bz2
musl-9080cc153cc2b09881c3245becbd68534db18d7c.tar.xz
musl-9080cc153cc2b09881c3245becbd68534db18d7c.zip
clean up handling of thread/nothread mode, locking
Diffstat (limited to 'src/stdio/flockfile.c')
-rw-r--r--src/stdio/flockfile.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/stdio/flockfile.c b/src/stdio/flockfile.c
index 440a36a9..0d4c92c2 100644
--- a/src/stdio/flockfile.c
+++ b/src/stdio/flockfile.c
@@ -3,9 +3,6 @@
void flockfile(FILE *f)
{
- if (!libc.lockfile) {
- pthread_self();
- libc.lockfile = __lockfile;
- }
+ if (!libc.threaded) pthread_self();
__lockfile(f);
}