fix copy/paste error in popen changes that broke signals
[musl] / src / stdio / funlockfile.c
index d69f68e..f8a2a07 100644 (file)
@@ -3,5 +3,5 @@
 
 void funlockfile(FILE *f)
 {
-       FUNLOCK(f);
+       if (!--f->lockcount) __unlockfile(f);
 }