Skip to content

Commit 94b3223

Browse files
committed
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
1 parent 9255d4a commit 94b3223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml-lsp-server/src/ocaml_lsp_server.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,4 +1069,4 @@ let start () =
10691069
let run ~read_dot_merlin () =
10701070
Merlin_config.should_read_dot_merlin := read_dot_merlin;
10711071
Unix.putenv "__MERLIN_MASTER_PID" (string_of_int (Unix.getpid ()));
1072-
Lev_fiber.run start
1072+
Lev_fiber.run ~sigpipe:`Ignore start

0 commit comments

Comments
 (0)