summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-08-17 01:40:08 -0700
committerVito Caputo <vcaputo@pengaru.com>2021-08-17 01:40:08 -0700
commit639e443e76653df440395ff6a56968000f8971c4 (patch)
treeacaa6730ce642aa0e0da98eece49b328cb91e8e0
parent891491fe7be7ad4568118f29e3159b9dfad9d933 (diff)
report-layout: disable implicit stdio locking
It's not performing threaded stdio on the layout FILE*.
-rw-r--r--src/report-layout.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/report-layout.c b/src/report-layout.c
index d01e6b3..e5af386 100644
--- a/src/report-layout.c
+++ b/src/report-layout.c
@@ -18,6 +18,7 @@
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
+#include <stdio_ext.h>
#include <iou.h>
#include <thunk.h>
@@ -116,6 +117,8 @@ THUNK_DEFINE_STATIC(per_journal, iou_t *, iou, journal_t **, journal_iter)
if (!f)
return -errno;
+ __fsetlocking(f, FSETLOCKING_BYCALLER);
+
fprintf(f, "Layout for \"%s\"\n", (*journal_iter)->name);
fprintf(f,
"Legend:\n"
© All Rights Reserved