ignore sigpipe

This commit is contained in:
User Builder 2021-05-27 09:08:55 +00:00 committed by Robur
parent 8a8dd9a14b
commit af1ed4cbc7

View file

@ -168,6 +168,7 @@ let () =
let info = Term.info "Builder web" ~doc:"Builder web" ~man:[] in
match Term.eval (term, info) with
| `Ok s ->
Sys.(set_signal sigpipe Signal_ignore);
Printexc.record_backtrace true;
let () = Lwt.async (fun () -> Lwt.bind s (fun _ -> Lwt.return_unit)) in
let forever, _ = Lwt.wait () in