Skip to content
This repository was archived by the owner on Oct 18, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion unix/lib/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let run t =
then we don't need to ignore it, so it's safe to continue. *)
(try Sys.(set_signal sigpipe Signal_ignore) with Invalid_argument _ -> ());
let t = call_hooks enter_hooks <&> t in
Lwt_unix.run t
Lwt_main.run t

let () = at_exit (fun () -> run (call_hooks exit_hooks))
let at_exit f = ignore (Lwt_sequence.add_l f exit_hooks)
Expand Down