diff options
Diffstat (limited to 'src/stdio')
-rw-r--r-- | src/stdio/__lockfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/__lockfile.c b/src/stdio/__lockfile.c index 93c94867..c0948255 100644 --- a/src/stdio/__lockfile.c +++ b/src/stdio/__lockfile.c @@ -13,7 +13,7 @@ void __lockfile(FILE *f) f->lockcount++; return; } - while (f->lock || a_cas(&f->lock, 0, tid)) + while (a_cas(&f->lock, 0, tid)) if (spins) spins--, a_spin(); else syscall(SYS_sched_yield); f->lockcount = 1; |