about summary refs log tree commit diff
path: root/src/stdio/__stdio_exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/__stdio_exit.c')
-rw-r--r--src/stdio/__stdio_exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/__stdio_exit.c b/src/stdio/__stdio_exit.c
index 3f87e7ed..0fb33234 100644
--- a/src/stdio/__stdio_exit.c
+++ b/src/stdio/__stdio_exit.c
@@ -8,7 +8,7 @@ weak_alias(dummy_file, __stderr_used);
 static void close_file(FILE *f)
 {
 	if (!f) return;
-	FLOCK(f);
+	FFINALLOCK(f);
 	if (f->wpos > f->wbase) f->write(f, 0, 0);
 	if (f->rpos < f->rend) f->seek(f, f->rpos-f->rend, SEEK_CUR);
 }