Skip to content

Commit

Permalink
fix(ocamllsp): ignore sigpipe
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rgrinberg committed Jul 15, 2022
1 parent 9255d4a commit 94b3223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocaml-lsp-server/src/ocaml_lsp_server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 94b3223

Please sign in to comment.