diff --git a/infer/src/IR/Io_infer.ml b/infer/src/IR/Io_infer.ml index 59d86051d7..1ee7091477 100644 --- a/infer/src/IR/Io_infer.ml +++ b/infer/src/IR/Io_infer.ml @@ -15,6 +15,8 @@ module L = Logging (* =============== START of module Html =============== *) module Html = struct + type t = Unix.File_descr.t * Format.formatter DLS.key + (** Create a new html file *) let create source path = if SourceFile.is_invalid source then @@ -28,7 +30,7 @@ module Html = struct in let fd = DB.Results_dir.(create_file (Abs_source_dir source)) dir_path in let outc = Unix.out_channel_of_descr fd in - let fmt = F.formatter_of_out_channel outc in + let fmt = F.synchronized_formatter_of_out_channel outc in let script = {|