From 94b322342d0e92b5a74661b3c24066ad7be4e1c2 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Fri, 15 Jul 2022 13:28:49 -0500 Subject: [PATCH] fix(ocamllsp): ignore sigpipe Sub processes such as ocamlformat-rpc, refmt (heaven forbid) might crash on us. We should not terminate the server because of that. ps-id: ab654253-9786-4ea6-96d2-260389712b47 --- ocaml-lsp-server/src/ocaml_lsp_server.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocaml-lsp-server/src/ocaml_lsp_server.ml b/ocaml-lsp-server/src/ocaml_lsp_server.ml index 5f01e423e..819691928 100644 --- a/ocaml-lsp-server/src/ocaml_lsp_server.ml +++ b/ocaml-lsp-server/src/ocaml_lsp_server.ml @@ -1069,4 +1069,4 @@ let start () = let run ~read_dot_merlin () = Merlin_config.should_read_dot_merlin := read_dot_merlin; Unix.putenv "__MERLIN_MASTER_PID" (string_of_int (Unix.getpid ())); - Lev_fiber.run start + Lev_fiber.run ~sigpipe:`Ignore start