From 639e443e76653df440395ff6a56968000f8971c4 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 17 Aug 2021 01:40:08 -0700 Subject: report-layout: disable implicit stdio locking It's not performing threaded stdio on the layout FILE*. --- src/report-layout.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/report-layout.c') 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 #include #include +#include #include #include @@ -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" -- cgit v1.2.3