@@ -620,10 +620,6 @@ let open_build_file ~base_name ~extension : build_file_channel =
620620
621621let captured_log_prefix = ref " !@#"
622622
623- (* * To avoid the complication of a concurrent thread, we expose a callback for collaborative log
624- processing. *)
625- let advance_captured_logs : (unit -> unit) option ref = ref None
626-
627623type captured_log_processor = { log_processor_prefix : string ; process_logs : string list -> unit }
628624
629625let captured_log_processors : captured_log_processor list ref = ref []
@@ -646,8 +642,6 @@ let capture_stdout_logs arg =
646642 else (
647643 Stdlib. flush Stdlib. stdout; (* Ensure previous stdout is flushed *)
648644 let original_stdout_fd = Unix. dup Unix. stdout in
649- let old_advance_captured_logs_val = ! advance_captured_logs in
650- advance_captured_logs := None ;
651645
652646 let pipe_read_fd, pipe_write_fd = Unix. pipe ~cloexec: true () in
653647 Unix. dup2 pipe_write_fd Unix. stdout;
@@ -705,7 +699,6 @@ let capture_stdout_logs arg =
705699 (try Domain. join reader_domain
706700 with e ->
707701 Stdio. eprintf " Exception while joining reader domain (arg failed): %s\\ n%!" (Exn. to_string e));
708- advance_captured_logs := old_advance_captured_logs_val;
709702
710703 if not (Atomic. get reader_domain_failed) then (
711704 let captured_output = List. rev ! collected_logs_ref in
@@ -733,7 +726,6 @@ let capture_stdout_logs arg =
733726 Stdio. eprintf " Exception while joining reader domain (arg succeeded): %s\\ n%!" (Exn. to_string e);
734727 if Atomic. get reader_domain_failed then
735728 Stdlib.Printexc. raise_with_backtrace e (Stdlib.Printexc. get_raw_backtrace () ));
736- advance_captured_logs := old_advance_captured_logs_val;
737729
738730 if not (Atomic. get reader_domain_failed) then (
739731 let captured_output = List. rev ! collected_logs_ref in
0 commit comments