projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make tmpfile fail after exceeding max tries.
[musl]
/
src
/
stdio
/
flockfile.c
diff --git
a/src/stdio/flockfile.c
b/src/stdio/flockfile.c
index
1b6ef58
..
440a36a
100644
(file)
--- a/
src/stdio/flockfile.c
+++ b/
src/stdio/flockfile.c
@@
-3,7
+3,9
@@
void flockfile(FILE *f)
{
- pthread_self();
- libc.lockfile = __lockfile;
+ if (!libc.lockfile) {
+ pthread_self();
+ libc.lockfile = __lockfile;
+ }
__lockfile(f);
}